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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
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,223,886
Messages
6,175,198
Members
452,616
Latest member
intern444

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