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
 

Some videos you may like

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

shaowu459

Well-known Member
Joined
Apr 26, 2018
Messages
515
Office Version
  1. 365
Platform
  1. Windows
Code:
=((az22/$x$3*100)/100)+isnumber(find("&",az10))
 

Holly92

New Member
Joined
Jun 14, 2018
Messages
14
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
 

shaowu459

Well-known Member
Joined
Apr 26, 2018
Messages
515
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

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.
 

Holly92

New Member
Joined
Jun 14, 2018
Messages
14
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
 

shaowu459

Well-known Member
Joined
Apr 26, 2018
Messages
515
Office Version
  1. 365
Platform
  1. Windows
please try:

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

Watch MrExcel Video

Forum statistics

Threads
1,123,135
Messages
5,599,917
Members
414,348
Latest member
KloppyM

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
Top