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

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
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....

:LOL:
 
Upvote 0

Forum statistics

Threads
1,214,377
Messages
6,119,182
Members
448,872
Latest member
lcaw

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