Adding a sumif function into a formula

Holly92

New Member
Joined
Jun 14, 2018
Messages
14
Hi,

I have written this formula, but it doesn't work! I am trying to add 1 to the result of the first formula (in brackets), if there is a '&' symbol in AZ10. I think what is confusing it is that I mean for it to look for a & within text, for example, 'Mr & Mrs Smith'. For this reason, I included a ~.

The value returned for this formula is the correct result for the formula in brackets, but it does not add 1 where there is a '&' symbol on AZ10.

=((AZ22/$X$3*100)/100)+SUM(IF(AZ10="*~&*",1,0))


If anyone would be able to help fix this formula, I would be most appreciative.

Many thanks,

Holly
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Code:
=((az22/$x$3*100)/100)+isnumber(find("&",az10))
 
Upvote 0
Would it be possible to alter this formula =((az22/$x$3*100)/100)+isnumber(find("&",az10)) so that instead of adding 1, it will multiply the result (of the formula in brackets at the start of the command) by 2?

Many thanks,

Holly
 
Upvote 0
I'm sorry, for language reason, i don't quite under stand what you mean... sorry....
isnumber(find("&",az10)) will return true or false. is the formula returns TRUE, +TRUE equals to +1, if the formula returns FALSE, +FALSE equals to +0. That means in math calculation,TRUE=1, FALSE=0.
 
Upvote 0
Sorry I didn't say that very clearly. What I mean is, are you able to help make this formula work?
=((AZ22/$X$3*100)/100)+SUM(IF(AZ10="*~&*",X2,0))

I would like the result of this part of the formula:
=((AZ22/$X$3*100)/100)

to be multiplied by 2, if AZ10 has '&' somewhere in the text.

Many thanks,

Holly
 
Upvote 0
please try:

Code:
[COLOR=#333333]=((az22/$x$3*100)/100)*if(isnumber(find("&",az10)),2,1) [/COLOR]
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,042
Members
448,940
Latest member
mdusw

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