MID text formula

jamilm

Well-known Member
Joined
Jul 21, 2011
Messages
740
Gurus,

i have a formula as text in one cell and i would like to add one more array through the mid function.


'=SUMPRODUCT(MONETARY_AMOUNT,--ISNUMBER(MATCH(FISCAL_YEAR,{2004},0)),1-ISNUMBER(MATCH(ACCOUNTING_PERIOD,{0,999,998},0)),--ISNUMBER(MATCH(LEFT(ACCOUNT&"#####",5),{"51005"},0)))*-1

'=SUMPRODUCT(MONETARY_AMOUNT,--ISNUMBER(MATCH(FISCAL_YEAR,{2004},0)),1-ISNUMBER(MATCH(ACCOUNTING_PERIOD,{0,999,998},0)),1-(FUND="KY004"),--ISNUMBER(MATCH(LEFT(ACCOUNT&"#####",5),{"51005"},0)))*-1


i know this is possible through the MID function, i somehow tried but it did not work.

grateful for your contribution.
 
Hi

No no no, no formulas!

Use Excel's inbuilt find and replace.

Select the column/s where the formulas are, in the Find box put -
998},0)),
in the Replace box put -
998},0)),-1(FUND="ky004"),

Replace all.

May I suggest that you try it on one cell first to check that the change you make is correct and a valid formula then apply it to the larger range.

hth
 
Upvote 0

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
did not work. the replace in inbuilt did not allow.

Hi

No no no, no formulas!

Use Excel's inbuilt find and replace.

Select the column/s where the formulas are, in the Find box put -
998},0)),
in the Replace box put -
998},0)),-1(FUND="ky004"),

Replace all.

May I suggest that you try it on one cell first to check that the change you make is correct and a valid formula then apply it to the larger range.

hth
 
Upvote 0
i tried again the method of replace as you described and it worked this time.

thank you Mike for your help. very much appreciated.

Hi

No no no, no formulas!

Use Excel's inbuilt find and replace.

Select the column/s where the formulas are, in the Find box put -
998},0)),
in the Replace box put -
998},0)),-1(FUND="ky004"),

Replace all.

May I suggest that you try it on one cell first to check that the change you make is correct and a valid formula then apply it to the larger range.

hth
 
Upvote 0
You're welcome.

Thanks for the feedback.

Pleased to have helped solve your problem.

Good luck with your project.
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,678
Members
449,116
Latest member
HypnoFant

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