If Statement with two concatenates

jackfox68

Board Regular
Joined
Jan 24, 2010
Messages
120
The bold underlined formula below is equating to 9.63 for the selected fields, which should default to the second concatenate, but for some reason it is defaulting to the first concatenate. Any thoughts on why?


=IF(AA25>0,IF(SUMPRODUCT($W$23:W25,$Y$23:Y25)/SUM($Y$23:Y25)<10,CONCATENATE(":0",ROUND(SUMPRODUCT($W$23:W25,$Y$23:Y25)/SUM($Y$23:Y25),0)),CONCATENATE(":",ROUND(SUMPRODUCT($W$23:W25,$Y$23:Y25)/SUM($Y$23:Y25),0))),"")
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

jackfox68

Board Regular
Joined
Jan 24, 2010
Messages
120
Thanks for the reply, even though it didn't answer my question directly it helped me think! I added a round to the if check, which I think will solve my problem
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,940
Office Version
  1. 365
Platform
  1. Windows
even though it didn't answer my question directly
:confused:

You said this
SUMPRODUCT($W$23:W25,$Y$23:Y25)/SUM($Y$23:Y25)
returns 9.63
so your formula becomes
IF(9.63<10,...
as 9.63 is less than 10 it returns true, which in turn returns the first concatenate formula
 

jackfox68

Board Regular
Joined
Jan 24, 2010
Messages
120
ok ok , let me rephrase. Even though I did not ask the question in a manner that would get the answer I actually needed....

:LOL:
 

Watch MrExcel Video

Forum statistics

Threads
1,130,271
Messages
5,641,233
Members
417,202
Latest member
AndyVBA

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