Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=IF(AND(G6=0,O6=0),P6,IF(G6=0,O6,G6-N6))
The above formula is in cell Q6 the results is a negative number. example -2. I want to add to this formula above that if the results is less than Zero than give me Zero. Any help! B. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You can use the MAX function make it only give you 0 and higher as
follows: =MAX ( ##, 0) thus: =MAX(IF(AND(G6=0,O6=0),P6,IF(G6=0,O6,G6-N6)),0) BSantos wrote: =IF(AND(G6=0,O6=0),P6,IF(G6=0,O6,G6-N6)) The above formula is in cell Q6 the results is a negative number. example -2. I want to add to this formula above that if the results is less than Zero than give me Zero. Any help! B. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Assuming that you mean G6-N6 is negative try:
=IF(AND(G6=0,O6=0),P6,IF(G6=0,O6,MAX(0,G6-N6))) -- HTH Sandy with @tiscali.co.uk "BSantos" wrote in message ... =IF(AND(G6=0,O6=0),P6,IF(G6=0,O6,G6-N6)) The above formula is in cell Q6 the results is a negative number. example -2. I want to add to this formula above that if the results is less than Zero than give me Zero. Any help! B. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() try this formula =MAX(0,IF(G6,G6-N6,IF(O6,O6,P6)) -- daddylonglegs ------------------------------------------------------------------------ daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486 View this thread: http://www.excelforum.com/showthread...hreadid=502284 |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Sandy, could you help me with this one:
=IF($I$2="Active",VLOOKUP($E6,Data!$G$4:$AT$1587,2 8,0),"0") I have this formula above in a cell. I want to add that if the vlookup doesn't find anything and returns a #N/A than give me ZERO. I'm doing this so I don't get #n/a in the column and my totals will add up without giving me #n/a. "Sandy Mann" wrote: Assuming that you mean G6-N6 is negative try: =IF(AND(G6=0,O6=0),P6,IF(G6=0,O6,MAX(0,G6-N6))) -- HTH Sandy with @tiscali.co.uk "BSantos" wrote in message ... =IF(AND(G6=0,O6=0),P6,IF(G6=0,O6,G6-N6)) The above formula is in cell Q6 the results is a negative number. example -2. I want to add to this formula above that if the results is less than Zero than give me Zero. Any help! B. |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() You can do it this way =IF(OR($I$2="Active",ISNA(VLOOKUP($E6,Data!$G$4:$A T$1587,28,0))),0,VLOOKUP($E6,Data!$G$4:$AT$1587,28 ,0)) -- daddylonglegs ------------------------------------------------------------------------ daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486 View this thread: http://www.excelforum.com/showthread...hreadid=502284 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula Problem - interrupted by #VALUE! in other cells!? | Excel Worksheet Functions | |||
Hide formula | Excel Worksheet Functions | |||
Formula checking multiple worksheets | Excel Worksheet Functions | |||
Match / Vlookup within an Array formula | Excel Discussion (Misc queries) | |||
Help with macro formula and variable | Excel Worksheet Functions |