I'm currently using a spreadsheet that subtracts numbers and comes up with a positive or negative number as the results. Once the calculation is completed, I want the result to be displayed in a different cell. I have included 2 examples of my spreadsheet to better illustrate what I mean.
In this example AUTH (61) minus ONHAND (63) = exce/short (2). I am in excess of my allowance by 2 and I want the excess number to be displayed in the EXCESS column and a 0 in the SHORT column. If the answer is 0, then I want a 0 in both the EXCESS and the SHORT cells.
1 BIN # AUTH ONHAND exce/short EXCESS SHORT
2 09517 61 63 2 2 0
3 32197 4 4 0 0 0
In this example AUTH (198) minus ONHAND (177) = exce/short (-21). I am short of my allowance by 21 and I want the exce/short number to be displayed in the SHORT column and a 0 in the EXCESS column.
BIN # AUTH ONHAND exce/short EXCESS SHORT
27 44312 198 177 -21 0 -21
In both examples I have to manually type the exce/short number in the appropriate EXCESS and SHORT columns, and I have over 200 rows of data I have to manually type the result in. Is there a way for excel to automatically display the data in the appropriate column and a 0 in the other column?
Any assistance you can provide will be greatly appreciated.
Thanks,
Gary Edgar
In this example AUTH (61) minus ONHAND (63) = exce/short (2). I am in excess of my allowance by 2 and I want the excess number to be displayed in the EXCESS column and a 0 in the SHORT column. If the answer is 0, then I want a 0 in both the EXCESS and the SHORT cells.
1 BIN # AUTH ONHAND exce/short EXCESS SHORT
2 09517 61 63 2 2 0
3 32197 4 4 0 0 0
In this example AUTH (198) minus ONHAND (177) = exce/short (-21). I am short of my allowance by 21 and I want the exce/short number to be displayed in the SHORT column and a 0 in the EXCESS column.
BIN # AUTH ONHAND exce/short EXCESS SHORT
27 44312 198 177 -21 0 -21
In both examples I have to manually type the exce/short number in the appropriate EXCESS and SHORT columns, and I have over 200 rows of data I have to manually type the result in. Is there a way for excel to automatically display the data in the appropriate column and a 0 in the other column?
Any assistance you can provide will be greatly appreciated.
Thanks,
Gary Edgar