Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default subtracting with blank rows inbetween?

In Excel 2003 I have created a database to show progressive weight loss (or
gain). I would like the result displayed in column F only after a number is
entered in column E. The following works until I have a blank row. Would I
have to adjust the formula each time a blank row is encountered?

=IF(E2=0,"",E1-E2)

E F
1 150 ___ (starting weight)
2 149 ___ (formula beginning here)
3 blank row
4 blank row
5 148 ___


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default subtracting with blank rows inbetween?

Enter this formula in F2 and copy down as needed:

=IF(E2="","",LOOKUP(10000,E$1:E1)-E2)

--
Biff
Microsoft Excel MVP


"STLMO" wrote in message
...
In Excel 2003 I have created a database to show progressive weight loss
(or
gain). I would like the result displayed in column F only after a number
is
entered in column E. The following works until I have a blank row. Would
I
have to adjust the formula each time a blank row is encountered?

=IF(E2=0,"",E1-E2)

E F
1 150 ___ (starting weight)
2 149 ___ (formula beginning here)
3 blank row
4 blank row
5 148 ___




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default subtracting with blank rows inbetween?

Yes, yes, it worked perfectly! Thank you so very much. I will read & study
more to understand what LOOKUP(10000 means

Again, thank you for your time and expertise.

"T. Valko" wrote:

Enter this formula in F2 and copy down as needed:

=IF(E2="","",LOOKUP(10000,E$1:E1)-E2)

--
Biff
Microsoft Excel MVP


"STLMO" wrote in message
...
In Excel 2003 I have created a database to show progressive weight loss
(or
gain). I would like the result displayed in column F only after a number
is
entered in column E. The following works until I have a blank row. Would
I
have to adjust the formula each time a blank row is encountered?

=IF(E2=0,"",E1-E2)

E F
1 150 ___ (starting weight)
2 149 ___ (formula beginning here)
3 blank row
4 blank row
5 148 ___





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default subtracting with blank rows inbetween?

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"STLMO" wrote in message
...
Yes, yes, it worked perfectly! Thank you so very much. I will read &
study
more to understand what LOOKUP(10000 means

Again, thank you for your time and expertise.

"T. Valko" wrote:

Enter this formula in F2 and copy down as needed:

=IF(E2="","",LOOKUP(10000,E$1:E1)-E2)

--
Biff
Microsoft Excel MVP


"STLMO" wrote in message
...
In Excel 2003 I have created a database to show progressive weight loss
(or
gain). I would like the result displayed in column F only after a
number
is
entered in column E. The following works until I have a blank row.
Would
I
have to adjust the formula each time a blank row is encountered?

=IF(E2=0,"",E1-E2)

E F
1 150 ___ (starting weight)
2 149 ___ (formula beginning here)
3 blank row
4 blank row
5 148 ___







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
How do I delete blank rows (rows alternate data, blank, data, etc ncochrax Excel Discussion (Misc queries) 2 June 27th 07 04:40 AM
Copy rows of data (eliminating blank rows) from fixed layout Sweepea Excel Discussion (Misc queries) 1 March 13th 07 11:05 PM
Get number of rows that data takes up, including blank rows Denham Coote Excel Worksheet Functions 2 August 21st 06 09:18 AM
How can I add rows inbetween? dhjacha Excel Worksheet Functions 6 January 10th 06 07:06 PM
How do I enter a row inbetween two rows? Acesmith Excel Discussion (Misc queries) 2 December 1st 04 01:17 PM


All times are GMT +1. The time now is 10:04 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"