Excel Need help with Excel formula

Need help for an excel formula to perform the following:

Formula needed for Qty Missing

Qty Ordered - Qty Received = Qty Missing
       10                      5                     5

Qty Received doesn't always have a value - add 0 in Qty Received if null:
Qty Ordered - Qty Received = Qty Missing
       10              "if null add 0"           5

All Qty Missing cells should have a value.
DJPr0Asked:
Who is Participating?
 
Rob HensonConnect With a Mentor Finance AnalystCommented:
Because column D has something other than blank, text value eventhough you can't see it.

Have you tried the IFERROR suggestion I gave earlier, it works on the sample you uploaded.

Thanks
Rob
0
 
Naresh PatelTraderCommented:
How come 5

Qty Ordered - Qty Received = Qty Missing
       10              "if null add 0"           5

Thanks
0
 
DJPr0Author Commented:
Sorry:

Qty Ordered - Qty Received = Qty Missing
       10              "if null add 0"        10
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
Naresh PatelTraderCommented:
Assume qty ordered in cell A2=10 & qty received in cell B2=5 then formula in cell C2=A2-B2.

But I don't think you want this kind of simple answer.may be you are missing some thing in explanation.

Thanks
0
 
Naresh PatelTraderCommented:
Or I guess you are very new to excel.  Mi right?
0
 
Naresh PatelTraderCommented:
there is any instance when receiving qty exceed order qty?
0
 
Rob HensonConnect With a Mentor Finance AnalystCommented:
Assume:

A2 = Order Qty
B2 = Received Qty

If B2 is blank, Excel will assume zero anyway.

Formula would be:
=A2-B2

10 - 0 = 10
10 - "blank" = 10

If B2 is a text value, even just an apostrophe, it will give error value. Maybe that is the issue here. The apostrophe could occur as a result of a download from another system or copy and paste of values from another formula where the zero option was set to "" rather than 0.

Workaround:

A2 = Order Qty
B2 = Received Qty

=IFERROR(A2-B2,A2)

This says, if the formula gives an error then use A2 (Order Qty) else work it out.

Thanks
Rob H
0
 
Naresh PatelTraderCommented:
then try this in Cell C2
=IF((A2-B2)<0,"Qty Exceed "&ABS(A2-B2),A2-B2)

Open in new window



See attached

Thanks
Qty.xlsx
0
 
Naresh PatelConnect With a Mentor TraderCommented:
As Per Mr.Rob H Approach & if you have multiple entries (which you want to total at the end) then try this version.


See Attached
Qty.xlsx
0
 
DJPr0Author Commented:
The formulas above work on a new blank sheet.

Why do I get an error (#VALUE!) on my formatted Excel sheet?
All cells are general type.
 
Please see attached file.
Testing---Copy.xls
0
 
DJPr0Author Commented:
The main problem was:
Because column D has something other than blank, text value even though you can't see it.

Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.