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.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Would you mind explaining what you mean by "throught the MID function" as it isn't immediately clear to me - do you mean you want to manipulate the section of your second formula highlighted in red?

Please explain as far as possible what you want the additional formula constituent to achieve.
 
Upvote 0
Despite your limited explanation (thanks!), am I to understand that you wish to amend your formula so that it now includes a further condition along the lines of "'entries in the "FUND" range are NOT EQUAL TO "KY004"'? Or should this be 'entries in the "FUND" range DO NOT CONTAIN the string "KY004"'?

Regards
 
Upvote 0
i apologize for not explaining it clearly. i have 1000 of rows that contain this formula and manually typing 1-(FUND="KY004") inside the existing formula will take alot of time. so i wanted to use MID or concatenate function to insert 1-(FUND="KY004") in all of my 1000 rows formulas.

Would you mind explaining what you mean by "throught the MID function" as it isn't immediately clear to me - do you mean you want to manipulate the section of your second formula highlighted in red?

Please explain as far as possible what you want the additional formula constituent to achieve.
 
Upvote 0
Can't you just make the adjustment to the first formula and then copy it down to the remaining cells?
 
Upvote 0
But do you actually know how this formula works? Do you know what 1-(FUND="KY004") means? (Answer: not much on its own)

Have you looked at my earlier question? As with Firefly, I am struggling to understand what you mean by "use MID or CONCATENATE to insert...".

Regards
 
Upvote 0
But do you actually know how this formula works? Do you know what 1-(FUND="KY004") means? (Answer: not much on its own)

Have you looked at my earlier question? As with Firefly, I am struggling to understand what you mean by "use MID or CONCATENATE to insert...".

Regards



yes, i know what that means, it means that in the rangecolumn named FUND any KY004 to be excluded. there is no problem in formula itself only is a modification problem that requires the MID function.
 
Upvote 0
thanks Firefly. but the reason, i cannot copy it to down, becuase each row has a different year =SUMPRODUCT(MONETARY_AMOUNT,--ISNUMBER(MATCH(FISCAL_YEAR,{2004},0)),
i want to someone insert this addtional 1-(FUND="KY004") array, inside of the each formula that varies by each year.

Can't you just make the adjustment to the first formula and then copy it down to the remaining cells?
 
Upvote 0
Hi

If all formulae have the same basic structure can't you do a blanket replace such as :-
Replace "998},0))," with "998},0)),1-(FUND="KY004"),"

hth
 
Upvote 0
this is very good suggesttion, probably can be done by substitude formula also, but question is how ?


Hi

If all formulae have the same basic structure can't you do a blanket replace such as :-
Replace "998},0))," with "998},0)),1-(FUND="KY004"),"

hth


=REPLACE(A1, "998},0))" ,,"998},0)),-1(FUND="ky004")") DID NOT WORK
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,198
Members
449,072
Latest member
DW Draft

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