# If Statement with two concatenates

#### jackfox68

##### Board Regular
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
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
even though it didn't answer my question directly

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
ok ok , let me rephrase. Even though I did not ask the question in a manner that would get the answer I actually needed....

Replies
0
Views
329
Replies
3
Views
44
Replies
3
Views
86
Replies
0
Views
114
Replies
4
Views
141

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?

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