Can you please look into the attachment and tell me where am I going wrong? I want my last cell to return 0 when the D is empty.
Thanks in advance
Can you please look into the attachment and tell me where am I going wrong? I want my last cell to return 0 when the D is empty.
Thanks in advance
Last edited by AliGW; 06-30-2020 at 03:59 PM. Reason: Solved tag correctly applied.
Nested IFs need to be in a specific order depending on how you want it to act.
Try this rearranged version of your formula:
=IF(D4="",0,IF(D4>C4,(D4-C4)*B4,IF(D4<C4,(A4-C4)*B4+D4*B4)))
BSB
Dear BSB,
Thanks for the prompt response. But now with this rearranged version, it is returning 0 for everything. Would you mind re looking at it please
Thanks
Oh my bad,
I had the formula pasted in the wrong cell. It works perfectly fine.
Thank you heaps BSB
Happy to help
BSB
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks