If statement not working properly??

thewiseguy

Well-known Member
Joined
May 23, 2005
Messages
1,014
Office Version
  1. 365
Platform
  1. Windows
Can anyone help me understand why this is not working properly?

v2024.34.xlsm
BCBD
4Qty.Unit MATERIAL Cost
50Yes
Helper
Cell Formulas
RangeFormula
BC5BC5=Input!AM4
BD5BD5=IF(BC5>0,"Yes","No")


Here is the data from "INPUT"

v2024.34.xlsm
ALAM
3Allocate?Allocated Qty.
40
Input
Cell Formulas
RangeFormula
AM4AM4=IF(AL4="Yes",U4,"0")
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
0 is not the same as "0" (anything between quotes is treated as literal text).

Change your formula in cell AM4 to this:
Excel Formula:
=IF(AL4="Yes",U4,0)
 
Upvote 0
Solution
0 is not the same as "0" (anything between quotes is treated as literal text).

Change your formula in cell AM4 to this:
Excel Formula:
=IF(AL4="Yes",U4,0)

ahh. thank you Joe.
 
Upvote 0
You are welcome.

Please Note: In the future, when marking a post as the solution, please mark the post that contains the solution (not your own post acknowledging that some other post was the solution).
When a post is marked as the solution, it is then shown right underneath the original question so people viewing the question can easily see the question and solution in a single quick glance without having to hunt through all the posts.

I have updated this thread for you.
 
Upvote 0

Forum statistics

Threads
1,221,831
Messages
6,162,250
Members
451,757
Latest member
iours

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