Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Help! with IF statement

Hi
I can't get it right, I've designed a database and designed a Scalextric
race track with all the part numbers in Column A, Qty in Column D, Current
Stock in Column F and to Buy in Column G.

This is what I have tried
=IF(F19=0,"",IF((D19-F19)<=0,"",D19-F19))

This works to a point, it does all the other things I wanted but does not
put the Qty required in Column G, it leaves that cell blank

Example I have
A D F G
C8235 15 blank blank

result should be 15 in Column G as I need 15 of Part C8235 for this track
and I'm showing none in stock in column F so column G should show 15 needed
to buy.

Another example
A D F G
C8205 70 9 61

result should be 61 in Column G

NOTE - if a part is not used result in column G should be blank

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,089
Default Help! with IF statement

I think the first part is redundant. Try:

=IF((D19-F19)<=0,"",D19-F19)

The formula will treat blank or zero in F19 as zero so you'll never evaluate
the other part of the formula.

Regards

Trevor


"Tommo" wrote in message
...
Hi
I can't get it right, I've designed a database and designed a Scalextric
race track with all the part numbers in Column A, Qty in Column D, Current
Stock in Column F and to Buy in Column G.

This is what I have tried
=IF(F19=0,"",IF((D19-F19)<=0,"",D19-F19))

This works to a point, it does all the other things I wanted but does not
put the Qty required in Column G, it leaves that cell blank

Example I have
A D F G
C8235 15 blank blank

result should be 15 in Column G as I need 15 of Part C8235 for this track
and I'm showing none in stock in column F so column G should show 15
needed
to buy.

Another example
A D F G
C8205 70 9 61

result should be 61 in Column G

NOTE - if a part is not used result in column G should be blank



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 860
Default Help! with IF statement

Hi Tommo,

If I understand you correctly, it is just the first bit
of your formula that is wrong.
Instead of =IF(F19=0........
Shouldn't it be =IF(D19=0........

HTH
Martin


"Tommo" wrote in message
...
Hi
I can't get it right, I've designed a database and designed a Scalextric
race track with all the part numbers in Column A, Qty in Column D, Current
Stock in Column F and to Buy in Column G.

This is what I have tried
=IF(F19=0,"",IF((D19-F19)<=0,"",D19-F19))

This works to a point, it does all the other things I wanted but does not
put the Qty required in Column G, it leaves that cell blank

Example I have
A D F G
C8235 15 blank blank

result should be 15 in Column G as I need 15 of Part C8235 for this track
and I'm showing none in stock in column F so column G should show 15
needed
to buy.

Another example
A D F G
C8205 70 9 61

result should be 61 in Column G

NOTE - if a part is not used result in column G should be blank



  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Help! with IF statement

Maybe this:
=IF(A19="","",IF((D19-F19)<=0,"",D19-F19))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Tommo" wrote:
Hi
I can't get it right, I've designed a database and designed a Scalextric
race track with all the part numbers in Column A, Qty in Column D, Current
Stock in Column F and to Buy in Column G.

This is what I have tried
=IF(F19=0,"",IF((D19-F19)<=0,"",D19-F19))

This works to a point, it does all the other things I wanted but does not
put the Qty required in Column G, it leaves that cell blank

Example I have
A D F G
C8235 15 blank blank

result should be 15 in Column G as I need 15 of Part C8235 for this track
and I'm showing none in stock in column F so column G should show 15 needed
to buy.

Another example
A D F G
C8205 70 9 61

result should be 61 in Column G

NOTE - if a part is not used result in column G should be blank

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can an If statement answer an If statement? M.A.Tyler Excel Discussion (Misc queries) 2 June 24th 07 04:14 AM
if statement BrianM New Users to Excel 2 August 20th 06 06:52 PM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM
Help please, IF statement/SUMIF statement Brad_A Excel Worksheet Functions 23 January 11th 05 02:24 PM


All times are GMT +1. The time now is 04:52 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"