Solved Tip for EXCEL users - extract text between parentheses


jimbo45

Well-known member
Pro User
VIP
Local time
3:28 AM
Posts
5,931
Location
Hafnarfjörður IS
OS
Windows XP,11 Linux Fedora Rawhide pre-release 46
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 My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 46
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2
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 My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 46
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2
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 My Computers

  • At a glance

    Windows 11 Pro 25H2 26200.9168AMD Ryzen 7 5825U with Radeon Graphics16GB
    OS
    Windows 11 Pro 25H2 26200.9168
    Computer type
    Laptop
    Manufacturer/Model
    Acemagic LX15PRO
    CPU
    AMD Ryzen 7 5825U with Radeon Graphics
    Motherboard
    BIOS CT_BI_AMI_LX15PRO_AB8139_A-004
    Memory
    16GB
    Screen Resolution
    1920 x 1080
    Hard Drives
    SSD 2TB
    Internet Speed
    30 Mbps
    Browser
    Brave
    Antivirus
    Webroot SecureAnywhere Complete beta
  • At a glance

    Windows 11 Pro 23H2 22631.2506Atom N450 1.66GHz2GB
    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
    Browser
    Brave
    Antivirus
    Webroot
  • Acer Swift SF114-34 laptop
    OS Windows 11 Pro 26200.8894
    CPU Pentium Silver N6000
    RAM 4GB
    BIOS v1.17
    SSD Samsung 970 EVO Plus SSD 2TB (an upgrade)
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 My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 46
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2

Latest Support Threads

Back
Top Bottom