Excel Formula assistance requested

KimberlyWelty

New Member
Joined
May 10, 2016
Messages
20
Wondering if someone can assist with this formula. Ultimately I am trying to pull out figures from column AO in column BC. The formula I have works most of the time, but not in all scenarios. One does not make sense, but the other 2 could be related to the length of the number.
Here is the formula I am using: =IFERROR(SUBSTITUTE(MID(AO2054,AGGREGATE(15,6,SEARCH(ROW($17:$2350),AO2054),1)-1,SEARCH(" ",AO2054,AGGREGATE(15,6,SEARCH(ROW($17:$2350),AO2054),1))-AGGREGATE(15,6,SEARCH(ROW($17:$2350),AO2054),1)),",","")+0,"")

The items in red are not working, hoping someone can assist me in correcting the formula so it works regardless of the number or value.
Let me know if you have any questions.

Thank you
Kimberly

1629405581697.png
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
I think i would parse the text as mid using the end of "Commission - Healthcare Commission Plan," as initial and the "ANnual" with subtracting off 5 characters as the final. then take the value of what's left in the middle...
e.g. for Row 4...

=VALUE(MID(AO4,(FIND(",",AO4)+2),FIND("Annual",AO4)-5-(FIND(",",AO4)+2)))

NOte: This only works if the Comm Currency is always 3 characters. If that's a variable you can build that in instead of the "-5" you can make that be -(2+lengthofCommCurr)
 
Upvote 0
I think i would parse the text as mid using the end of "Commission - Healthcare Commission Plan," as initial and the "ANnual" with subtracting off 5 characters as the final. then take the value of what's left in the middle...
e.g. for Row 4...

=VALUE(MID(AO4,(FIND(",",AO4)+2),FIND("Annual",AO4)-5-(FIND(",",AO4)+2)))

NOte: This only works if the Comm Currency is always 3 characters. If that's a variable you can build that in instead of the "-5" you can make that be -(2+lengthofCommCurr)
Thank you!
 
Upvote 0

Forum statistics

Threads
1,214,592
Messages
6,120,433
Members
448,961
Latest member
nzskater

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