Ignore data within parentheses from formula

Niall19

New Member
Joined
Dec 13, 2022
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hello,

So, I'm quite the novice when it comes to excel formulae so any help would be greatly appreciated. This is probably very straightforward but I would like "Remaining volume" in cell "G3" to substract the values in "J3", "K3" and "L3" from the value in "I3", crucially, ignoring the data within the parentheses. Is this possible and if so, could a kind soul offer some advice on how to achieve this?
REMAINING VOLUME (µL)INITIAL QUANTITY RECEIVED (mg)INITIAL QUANTITY (µL)QUANTITY USED (µL)QUANTITY USED (µL)QUANTITY USED (µL)
SUM of initial quantity minus all quantity used, ignoring parentheses.
10000​
10000​
100 (19SEP22)127 (23SEP22)120 (26SEP22)
G3^​
H3^​
I3^​
J3^​
K3^ L3 ^

Kind regards,
Niall
 
Another option
Excel Formula:
=IF(COUNTIFS(J3:L3,"<>")=0,0,I3-SUM(FILTERXML("<k><m>"&TEXTJOIN("</m><m>",,SUBSTITUTE(J3:L3," ","</m><m>"))&"</m></k>","//m")))
 
Upvote 0

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,215,406
Messages
6,124,720
Members
449,184
Latest member
COrmerod

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top