LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Formula not recognizing reference to "" in IF statement

I'm creating a list of delivery dates based on the date product was ordered
and the number of units that were ordered. I'd like the list to only show
info for the number of units ordered, i.e. if 10 units are ordered I want to
see info for all 10, if there were only 3 in the order I'd like the list to
shrink down to 3 rows so that I don't have a clutter of unnecessary info.

I've been trying variations of the following formula to get the list of # of
units to expand or shrink based on the order size:

=IF(AND(S5+1<=$Q$6,S5<""),S5+1,"")

This formula appears in cell S6 and:
S5 = cell for unit 1 and contains "1"
Q6 = # of units ordered

The idea is if the order size is at least 2 (as shown in Q6) then cell S6
would display 2, otherwise it would just stay blank.

What's happening is that this works until the first cell beyond the order
size (i.e. cell #6 for a 5 unit order shows blank) but in the subsequent
cells I get a "#VALUE" error rather than having them show blank.

It's a cosmetic thing but any help would be appreciated.
 
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
Solver formula "Equal to Value of:" cell reference ORLANDO VAZQUEZ[_2_] Excel Discussion (Misc queries) 2 March 24th 09 09:42 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Converting a text form of "=Sheet2!A1" into a reference formula Doug Davey Excel Discussion (Misc queries) 11 July 6th 07 03:51 PM
"If" statement returning blank gives downstream formula errors. Johnboy Excel Discussion (Misc queries) 2 February 26th 07 05:26 PM
embedding "ISERROR" function into an "IF" statement [email protected] Excel Worksheet Functions 8 January 4th 07 12:01 AM


All times are GMT +1. The time now is 04:40 PM.

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

About Us

"It's about Microsoft Excel"