Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]() Column G has header qtys12mo (quanity sold last 12 months) Column H has header onhand (quanity on hand) I need an if statement that compares the values in these two columns and returns the value T or Blank If qtys12mo and onhand = 0 then T if qtys12mo 0 and onhand = 0 then Blank if qtys12mo<0 and onhand 0 then T if qtys12mo0 and onhand0 then blank -- nander ------------------------------------------------------------------------ nander's Profile: http://www.excelforum.com/member.php...fo&userid=6156 View this thread: http://www.excelforum.com/showthread...hreadid=397459 |
#2
![]() |
|||
|
|||
![]()
=IF(OR(AND(G2=0,H2=0),AND(G2<0,H20)),"T","")
-- HTH RP (remove nothere from the email address if mailing direct) "nander" wrote in message ... Column G has header qtys12mo (quanity sold last 12 months) Column H has header onhand (quanity on hand) I need an if statement that compares the values in these two columns and returns the value T or Blank If qtys12mo and onhand = 0 then T if qtys12mo 0 and onhand = 0 then Blank if qtys12mo<0 and onhand 0 then T if qtys12mo0 and onhand0 then blank -- nander ------------------------------------------------------------------------ nander's Profile: http://www.excelforum.com/member.php...fo&userid=6156 View this thread: http://www.excelforum.com/showthread...hreadid=397459 |
#3
![]() |
|||
|
|||
![]() =IF(AND(G2=0,H2=0),"T",IF(AND(G20,H2=0),"",IF(AND (G2<0,H20),"T",IF(AND(G20,H20),"","other")))) fits your request, you can remove the words 'Blank', 'blank'and 'other' when you have tested the formula. nander Wrote: Column G has header qtys12mo (quanity sold last 12 months) Column H has header onhand (quanity on hand) I need an if statement that compares the values in these two columns and returns the value T or Blank If qtys12mo and onhand = 0 then T if qtys12mo 0 and onhand = 0 then Blank if qtys12mo<0 and onhand 0 then T if qtys12mo0 and onhand0 then blank -- Bryan Hessey ------------------------------------------------------------------------ Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059 View this thread: http://www.excelforum.com/showthread...hreadid=397459 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Do I need a sumif or sum of a vlookup formula? | Excel Worksheet Functions | |||
IF Statement | New Users to Excel | |||
How to calculate a sum as one outcome of an IF statement | Excel Worksheet Functions | |||
How do I fix a circular reference in a financial statement? | Excel Discussion (Misc queries) | |||
Statement | Excel Worksheet Functions |