Solved Tip for EXCEL users - extract text between parentheses


jimbo45

Well-known member
Pro User
VIP
Local time
7:37 AM
Posts
4,032
Location
Hafnarfjörður IS
OS
Windows XP,7,10,11 Linux Arch Linux
Hi folks
Some people might find this little snippet good.

While trying to build a Historical data set of stocks in various indices one needs the share code. Often you get the title with the share code in between a set of ()'s. So It's simple to extract = but not intuitive.

Use this formula =MID(A2,FIND("(",A2)+1,FIND(")",A2)-FIND("(",A2)-1)

where the text is in say CELL A2 - and then propagate down the entire column -- Have a look at the J column.

e,g

Screenshot 2023-10-03 133626.png


Hope this is of interest to some -- There are a load of EXCEL users but using these lesser known functions can often save a load of extra work.

STOCK data / HISTORY doesn't work on non OFFICE/365 versions even OFFICE 2021 LTSC. If you attempt to use it you get the message "BLOCKED - LICENSE required (OFFICE/365). However with EXCEL there are always "Alternate" ways of "replicating" newer functionality !!!!

Cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7
So, what happened in cell J3? ;-)
I think that was just "Snipping tool" getting its knickers in a twist - J3 is fine

Screenshot 2023-10-03 142542.png

cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7
I deleted my silly post just before you replied. How long did it take you to perfect quite a complex formula?
Have you tried with the SUBSTITUTE command? There are lots of solutions on the internet for removing parentheses.

I like to use the IF command in my spreadsheets so rows with data not yet added don't spawn lots of gibberish.

I am tracking my monthly electricity meter readings. All the formulae are entered down to row 100.
But as I have yet to enter a meter reading in B63 the cells to the right show nothing.


1696340475729.png
 

My Computers

System One System Two

  • OS
    11 Pro 23H2 OS build 22631.3374
    Computer type
    Laptop
    Manufacturer/Model
    Acer Swift SF114-34
    CPU
    Pentium Silver N6000 1.10GHz
    Memory
    4GB
    Screen Resolution
    1920 x 1080
    Hard Drives
    SSD
    Cooling
    fanless
    Internet Speed
    13Mbps
    Browser
    Brave, Edge or Firefox
    Antivirus
    Webroot Secure Anywhere
    Other Info
    System 3

    ASUS T100TA Transformer
    Processor Intel Atom Z3740 @ 1.33GHz
    Installed RAM 2.00 GB (1.89 GB usable)
    System type 32-bit operating system, x64-based processor

    Edition Windows 10 Home
    Version 22H2 build 19045.3570
  • Operating System
    Windows 11 Pro 23H2 22631.2506
    Computer type
    Laptop
    Manufacturer/Model
    HP Mini 210-1090NR PC (bought in late 2009!)
    CPU
    Atom N450 1.66GHz
    Memory
    2GB
I deleted my silly post just before you replied. How long did it take you to perfect quite a complex formula?
Have you tried with the SUBSTITUTE command? There are lots of solutions on the internet for removing parentheses.

I like to use the IF command in my spreadsheets so rows with data not yet added don't spawn lots of gibberish.

I am tracking my monthly electricity meter readings. All the formulae are entered down to row 100.
But as I have yet to enter a meter reading in B63 the cells to the right show nothing.


View attachment 72900
Now if those people telling users to have smart meters installed would supply this data in a downloadable CSV etc format - wouldn't that be a decent service if users could access the data on those and get this data directly - but I suspect the last time any large organisation even THOUGHT about any tiny smidgen of customer service was perhaps at the time Queen Victoria was on the throne holding sway over the British Empire !!!!.


Cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7

Latest Support Threads

Back
Top Bottom