Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Eric
 
Posts: n/a
Default return zero from a blank cell

=E8-(B9+IF(ISBLANK(G8),0,G8))

I cant get this to work
If G8 is empty return 0 else return the value from G8 so that
the end result is E8 - B9 if G8 is empty ELSE E8-(B9+G8) if G8 has a value

Where did i go wrong?

Another problem:
E9 to E368 contains decreasing dollar values that eventually fall below
Zero. I want to find the first Exx cell at or below Zero and return the A
Cell from the same row (which is a date)
so for example,
H1 I1
Zero Date =Cells.Item(MATCH(E8,E368,-1), 1).Value

RowNum Col A Col E
335 Jun 1, 2003 $25.00
336 Jul 1, 2003 $15.35
337 Aug 1, 2003 -1.00
338 Sep 1, 2003 -16.00

so the formula would find Row 337 and return the Date in A:337 which is Aug
1, 2003 and Cell I1 would show that date

Thanks
Eric
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Blank is zero, all you need is =E8-(B9+G8)

On the other

=MIN(IF(A1:A20<0,A1:A20))

which is an array formula, so commit with Ctrl-Shift-Enter.

--
HTH

Bob Phillips

"Eric" wrote in message
...
=E8-(B9+IF(ISBLANK(G8),0,G8))

I cant get this to work
If G8 is empty return 0 else return the value from G8 so that
the end result is E8 - B9 if G8 is empty ELSE E8-(B9+G8) if G8 has a value

Where did i go wrong?

Another problem:
E9 to E368 contains decreasing dollar values that eventually fall below
Zero. I want to find the first Exx cell at or below Zero and return the A
Cell from the same row (which is a date)
so for example,
H1 I1
Zero Date =Cells.Item(MATCH(E8,E368,-1), 1).Value

RowNum Col A Col E
335 Jun 1, 2003 $25.00
336 Jul 1, 2003 $15.35
337 Aug 1, 2003 -1.00
338 Sep 1, 2003 -16.00

so the formula would find Row 337 and return the Date in A:337 which is

Aug
1, 2003 and Cell I1 would show that date

Thanks
Eric



  #3   Report Post  
Eric
 
Posts: n/a
Default

Bob Phillips wrote:

Blank is zero, all you need is =E8-(B9+G8)

On the other

=MIN(IF(A1:A20<0,A1:A20))

which is an array formula, so commit with Ctrl-Shift-Enter.


=E8-(B9+G8)
compains that "this formula in this cell refers cells that are currently
empty" which is the same problem i had before and also the cell contains a
green triangle in its upper left corner. Whats that about?
sorry for basic q's but I'm real new to excel

=MIN(IF(A1:A20<0,A1:A20)) works great, thanks!
Eric


  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default


"Eric" wrote in message
...
Bob Phillips wrote:

Blank is zero, all you need is =E8-(B9+G8)

On the other

=MIN(IF(A1:A20<0,A1:A20))

which is an array formula, so commit with Ctrl-Shift-Enter.


=E8-(B9+G8)
compains that "this formula in this cell refers cells that are currently
empty" which is the same problem i had before and also the cell contains a
green triangle in its upper left corner. Whats that about?
sorry for basic q's but I'm real new to excel


Sorry, I have never seen that message.


  #5   Report Post  
Eric
 
Posts: n/a
Default

Bob Phillips wrote:


"Eric" wrote in message
...
Bob Phillips wrote:

Blank is zero, all you need is =E8-(B9+G8)

On the other

=MIN(IF(A1:A20<0,A1:A20))

which is an array formula, so commit with Ctrl-Shift-Enter.


=E8-(B9+G8)
compains that "this formula in this cell refers cells that are currently
empty" which is the same problem i had before and also the cell contains
a green triangle in its upper left corner. Whats that about?
sorry for basic q's but I'm real new to excel


Sorry, I have never seen that message.


Ah, i found it, its an option that was turned on "Warn about formulas
referring to empty cells"
Anyway, thanks for the help, the stuff you showed me works good.
Eric


  #6   Report Post  
Bob Phillips
 
Posts: n/a
Default

Where is that option? Excel version?

Bob


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
returning blank cell in criteria o Joop Excel Discussion (Misc queries) 3 June 3rd 05 02:11 PM
Return Count for LAST NonBlank Cell in each Row Sam via OfficeKB.com Excel Worksheet Functions 12 April 17th 05 10:36 PM
?? Extra blank lines in 'address' cell after exporting to Excel Hadyn Pkok Excel Discussion (Misc queries) 4 April 15th 05 11:34 PM
if the value of a cell in a range is not blank, then return the v. kvail Excel Worksheet Functions 2 April 8th 05 10:07 PM
Look for change next blank cell in Range Nigel Bennett Excel Worksheet Functions 1 March 13th 05 09:45 PM


All times are GMT +1. The time now is 06:15 PM.

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"