Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
lmc lmc is offline
external usenet poster
 
Posts: 1
Default Formulas in a range of cells

I am trying to select a range of cells exp. (C15 - C25) and I will for sure
be entering data in C15. It varies if I will use all the cells up to C25. Now
is C26 I want a formula that take the last entered cell in that data range
and subtracts it from cell C15. Is that possible to do?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Formulas in a range of cells

What if C15 is the only entry? I'm assuming that you don't want anything to
happen if C15 is the only entry.

=IF(COUNT(C15:C25)<2,"",C15-LOOKUP(10^10,C16:C25))

Biff

"lmc" <u30700@uwe wrote in message news:6bcb170ae5bfc@uwe...
I am trying to select a range of cells exp. (C15 - C25) and I will for
sure
be entering data in C15. It varies if I will use all the cells up to C25.
Now
is C26 I want a formula that take the last entered cell in that data range
and subtracts it from cell C15. Is that possible to do?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 120
Default Formulas in a range of cells

Let me get this straight.

You enter numbers in columns C from cell C15 up to some random spot
that will never be past C25.

Example:
C
15. 12
16. 10
17.
18.
19. 5
20.
21. 2
22. 3
23.
24.
25.

In this case you would want C26 to be 12 - 3 = 9.

But if data was only entered in C15 = 12, C16 = 2 then C26 = 12-2 = 10.

What about if only C15 = 5 is entered? Does C26 = 5?

IF you're logic is the same as mine, the this should work. Put this in
C26.

=IF(COUNT(C16:C25)0,C15 - LOOKUP(2,1/(C16:C25<""),C16:C25),C15)

Cheers,
Jason Lepack

lmc wrote:
I am trying to select a range of cells exp. (C15 - C25) and I will for sure
be entering data in C15. It varies if I will use all the cells up to C25. Now
is C26 I want a formula that take the last entered cell in that data range
and subtracts it from cell C15. Is that possible to do?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Formulas in a range of cells

=C15-LOOKUP(2,1/(C15:C65536<""),C15:C65536)


"lmc" wrote:

I am trying to select a range of cells exp. (C15 - C25) and I will for sure
be entering data in C15. It varies if I will use all the cells up to C25. Now
is C26 I want a formula that take the last entered cell in that data range
and subtracts it from cell C15. Is that possible to do?


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Formulas in a range of cells

Biff

Very good.

Gord

On Thu, 4 Jan 2007 14:55:50 -0500, "T. Valko" wrote:

What if C15 is the only entry? I'm assuming that you don't want anything to
happen if C15 is the only entry.

=IF(COUNT(C15:C25)<2,"",C15-LOOKUP(10^10,C16:C25))

Biff

"lmc" <u30700@uwe wrote in message news:6bcb170ae5bfc@uwe...
I am trying to select a range of cells exp. (C15 - C25) and I will for
sure
be entering data in C15. It varies if I will use all the cells up to C25.
Now
is C26 I want a formula that take the last entered cell in that data range
and subtracts it from cell C15. Is that possible to do?





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Formulas in a range of cells

Thank you!

Biff

"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
Biff

Very good.

Gord

On Thu, 4 Jan 2007 14:55:50 -0500, "T. Valko"
wrote:

What if C15 is the only entry? I'm assuming that you don't want anything
to
happen if C15 is the only entry.

=IF(COUNT(C15:C25)<2,"",C15-LOOKUP(10^10,C16:C25))

Biff

"lmc" <u30700@uwe wrote in message news:6bcb170ae5bfc@uwe...
I am trying to select a range of cells exp. (C15 - C25) and I will for
sure
be entering data in C15. It varies if I will use all the cells up to
C25.
Now
is C26 I want a formula that take the last entered cell in that data
range
and subtracts it from cell C15. Is that possible to do?





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
Fill down formulas in cells to the LEFT of external data range? tsobiech Excel Worksheet Functions 0 September 14th 06 03:57 PM
inserting a named range into new cells based on a named cell Peter S. Excel Discussion (Misc queries) 1 June 4th 06 03:53 AM
Copy range of cells omitting formulas that result in " " Plot only cells with values in column Excel Discussion (Misc queries) 1 May 24th 05 08:52 PM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 2 May 2nd 05 08:53 AM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 0 April 7th 05 12:47 AM


All times are GMT +1. The time now is 02:47 AM.

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"