Slight change of formula

ExcelRoy

Well-known Member
Joined
Oct 2, 2006
Messages
2,540
Office Version
  1. 365
Platform
  1. Windows
Hi guys,

i need a slight change to my formula

=SUM(INDEX(Q15:Q138,MATCH("*Additions*",H15:H138,0)):Q138)

at the start of the sheet if nothing is entered it shows "#N/A" but i would like it to say "---"

Hope this makes sense

Thanks
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
hi aladin,

sorry i have not explained myself very well. apologies

this formula shows a zero until criteria is entered within the parameters

i would like it to show "" until criteria is entered

thanks
 
Upvote 0
hi aladin,

sorry i have not explained myself very well. apologies

this formula shows a zero until criteria is entered within the parameters

i would like it to show "" until criteria is entered

thanks

Do you mean something like...
Code:
=IF(COUNTIF(H15:H138,"*Surcharge*"),
    SUMPRODUCT(--ISNUMBER(SEARCH(" Surcharge "," "&H15:H138&" ")),
       Q15:Q138),"")
which checks whether the string Surcharge occurs at all in H15:H138?

By the way, you can also keep the original formula as is and
custom format the formula cell as:

[=0]"";General
 
Upvote 0

Forum statistics

Threads
1,224,526
Messages
6,179,322
Members
452,906
Latest member
Belthazar

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