If Statement with two concatenates

jackfox68

Board Regular
Joined
Jan 24, 2010
Messages
121
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

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
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
 
Upvote 0
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
 
Upvote 0
ok ok , let me rephrase. Even though I did not ask the question in a manner that would get the answer I actually needed....

:laugh:
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,128
Members
453,021
Latest member
Justyna P

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