Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default Last non blank cell in selected cells

Is it possible to specify a group of cells like A1,A5,A10,A15,A20, and have
Excel find the last non blank cell in the group? These are numeric values
that update a report weekly.
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Last non blank cell in selected cells

What do you mean by "find" the last non blank cell in the group?

Do you want a formula that returns the value from that cell?

Try this:

Entered as an array using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):

=INDEX(A1:A20,MAX((MOD(ROW(A1:A20),5)=0)*(A1:A20< "")*(ROW(A1:A20))))

Biff

"Ron Weaver" wrote in message
...
Is it possible to specify a group of cells like A1,A5,A10,A15,A20, and
have
Excel find the last non blank cell in the group? These are numeric values
that update a report weekly.
Thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Last non blank cell in selected cells

=IF(COUNT(A1:A20)<5,A1,MAX(IF(MOD(ROW(A1:A20),5)=0 ,A1:A20)))

ctrl+shift+enter, not just enter


"Ron Weaver" wrote:

Is it possible to specify a group of cells like A1,A5,A10,A15,A20, and have
Excel find the last non blank cell in the group? These are numeric values
that update a report weekly.
Thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Last non blank cell in selected cells

=IF(COUNT(A1:A20)<5,A1,MAX(IF(MOD(ROW(A1:A20),5)=0 ,A1:A20)))

That returns the max value from the specified cells, not the last value from
the specified cells. Also, what if A10 is the only entry in the range?

Biff

"Teethless mama" wrote in message
...
=IF(COUNT(A1:A20)<5,A1,MAX(IF(MOD(ROW(A1:A20),5)=0 ,A1:A20)))

ctrl+shift+enter, not just enter


"Ron Weaver" wrote:

Is it possible to specify a group of cells like A1,A5,A10,A15,A20, and
have
Excel find the last non blank cell in the group? These are numeric values
that update a report weekly.
Thanks



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default Last non blank cell in selected cells

I will try to make this a little more clear. On week one I will put a figure
in A1. I want this figure to show in B1. On week two I will put a figure in
A5. Now I want this figure to show in B1. On week three I will put a figure
in A10. Now I want this figure to show in B1, etc. To complicate things,
there will be other values in A2,A3,A4,A6,A7,A8,A9.

"T. Valko" wrote:

=IF(COUNT(A1:A20)<5,A1,MAX(IF(MOD(ROW(A1:A20),5)=0 ,A1:A20)))


That returns the max value from the specified cells, not the last value from
the specified cells. Also, what if A10 is the only entry in the range?

Biff

"Teethless mama" wrote in message
...
=IF(COUNT(A1:A20)<5,A1,MAX(IF(MOD(ROW(A1:A20),5)=0 ,A1:A20)))

ctrl+shift+enter, not just enter


"Ron Weaver" wrote:

Is it possible to specify a group of cells like A1,A5,A10,A15,A20, and
have
Excel find the last non blank cell in the group? These are numeric values
that update a report weekly.
Thanks






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Last non blank cell in selected cells

Try something like this:

B1:
=INDEX(A1:A1000,MAX(INDEX((MOD(ROW(A1:A1000),5)=0) *ISNUMBER(A1:A1000)*ROW(A1:A1000),0)))

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Ron Weaver" wrote:

Is it possible to specify a group of cells like A1,A5,A10,A15,A20, and have
Excel find the last non blank cell in the group? These are numeric values
that update a report weekly.
Thanks

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default Last non blank cell in selected cells

That works perfectly. Now, what if I want to do the same thing across:
Formula in B1
Values in A1,E1,J1,N1, etc.
Thanks

"Ron Coderre" wrote:

Try something like this:

B1:
=INDEX(A1:A1000,MAX(INDEX((MOD(ROW(A1:A1000),5)=0) *ISNUMBER(A1:A1000)*ROW(A1:A1000),0)))

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Ron Weaver" wrote:

Is it possible to specify a group of cells like A1,A5,A10,A15,A20, and have
Excel find the last non blank cell in the group? These are numeric values
that update a report weekly.
Thanks

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Last non blank cell in selected cells

OK....
But, with one caveat:
The formula can't be in Row_1 or you'll have a circular ref.

So
B2:
=INDEX(1:1,MAX(INDEX((MOD(COLUMN(1:1),5)=0)*ISNUMB ER(1:1)*COLUMN(1:1),0,0),1))

BTW: Same issue for the formula referencing Col_A...
It can't be in Col_A and...
If the formula will be in a row other than Row_1
Use this version:
=INDEX(A1:A1000,MAX(INDEX((MOD(ROW(A1:A1000),5)=0) *ISNUMBER(A1:A1000)*ROW(A1:A1000),0),1))

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Ron Weaver" wrote:

That works perfectly. Now, what if I want to do the same thing across:
Formula in B1
Values in A1,E1,J1,N1, etc.
Thanks

"Ron Coderre" wrote:

Try something like this:

B1:
=INDEX(A1:A1000,MAX(INDEX((MOD(ROW(A1:A1000),5)=0) *ISNUMBER(A1:A1000)*ROW(A1:A1000),0)))

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Ron Weaver" wrote:

Is it possible to specify a group of cells like A1,A5,A10,A15,A20, and have
Excel find the last non blank cell in the group? These are numeric values
that update a report weekly.
Thanks

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Last non blank cell in selected cells

The formula I suggested does what you want.

Biff

"Ron Weaver" wrote in message
...
I will try to make this a little more clear. On week one I will put a
figure
in A1. I want this figure to show in B1. On week two I will put a figure
in
A5. Now I want this figure to show in B1. On week three I will put a
figure
in A10. Now I want this figure to show in B1, etc. To complicate things,
there will be other values in A2,A3,A4,A6,A7,A8,A9.

"T. Valko" wrote:

=IF(COUNT(A1:A20)<5,A1,MAX(IF(MOD(ROW(A1:A20),5)=0 ,A1:A20)))


That returns the max value from the specified cells, not the last value
from
the specified cells. Also, what if A10 is the only entry in the range?

Biff

"Teethless mama" wrote in
message
...
=IF(COUNT(A1:A20)<5,A1,MAX(IF(MOD(ROW(A1:A20),5)=0 ,A1:A20)))

ctrl+shift+enter, not just enter


"Ron Weaver" wrote:

Is it possible to specify a group of cells like A1,A5,A10,A15,A20, and
have
Excel find the last non blank cell in the group? These are numeric
values
that update a report weekly.
Thanks






  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default Last non blank cell in selected cells

This works ! Thanks for your help.

"Ron Coderre" wrote:

OK....
But, with one caveat:
The formula can't be in Row_1 or you'll have a circular ref.

So
B2:
=INDEX(1:1,MAX(INDEX((MOD(COLUMN(1:1),5)=0)*ISNUMB ER(1:1)*COLUMN(1:1),0,0),1))

BTW: Same issue for the formula referencing Col_A...
It can't be in Col_A and...
If the formula will be in a row other than Row_1
Use this version:
=INDEX(A1:A1000,MAX(INDEX((MOD(ROW(A1:A1000),5)=0) *ISNUMBER(A1:A1000)*ROW(A1:A1000),0),1))

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Ron Weaver" wrote:

That works perfectly. Now, what if I want to do the same thing across:
Formula in B1
Values in A1,E1,J1,N1, etc.
Thanks

"Ron Coderre" wrote:

Try something like this:

B1:
=INDEX(A1:A1000,MAX(INDEX((MOD(ROW(A1:A1000),5)=0) *ISNUMBER(A1:A1000)*ROW(A1:A1000),0)))

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Ron Weaver" wrote:

Is it possible to specify a group of cells like A1,A5,A10,A15,A20, and have
Excel find the last non blank cell in the group? These are numeric values
that update a report weekly.
Thanks



  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Last non blank cell in selected cells

Thanks for the feedback, Ron.....
I'm glad I could help on that one (plus, it was fun to figure out)


***********
Regards,
Ron

XL2002, WinXP


"Ron Weaver" wrote:

This works ! Thanks for your help.

"Ron Coderre" wrote:

OK....
But, with one caveat:
The formula can't be in Row_1 or you'll have a circular ref.

So
B2:
=INDEX(1:1,MAX(INDEX((MOD(COLUMN(1:1),5)=0)*ISNUMB ER(1:1)*COLUMN(1:1),0,0),1))

BTW: Same issue for the formula referencing Col_A...
It can't be in Col_A and...
If the formula will be in a row other than Row_1
Use this version:
=INDEX(A1:A1000,MAX(INDEX((MOD(ROW(A1:A1000),5)=0) *ISNUMBER(A1:A1000)*ROW(A1:A1000),0),1))

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Ron Weaver" wrote:

That works perfectly. Now, what if I want to do the same thing across:
Formula in B1
Values in A1,E1,J1,N1, etc.
Thanks

"Ron Coderre" wrote:

Try something like this:

B1:
=INDEX(A1:A1000,MAX(INDEX((MOD(ROW(A1:A1000),5)=0) *ISNUMBER(A1:A1000)*ROW(A1:A1000),0)))

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Ron Weaver" wrote:

Is it possible to specify a group of cells like A1,A5,A10,A15,A20, and have
Excel find the last non blank cell in the group? These are numeric values
that update a report weekly.
Thanks

  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 52
Default Last non blank cell in selected cells

Control+shift+enter:

=LOOKUP(9.99999999999999E+307,IF(MOD(COLUMN(A1:Z1)-COLUMN(A1),5)=0,IF(ISNUMBER(A1:Z1),A1:Z1)))

Ron Weaver wrote:
That works perfectly. Now, what if I want to do the same thing across:
Formula in B1
Values in A1,E1,J1,N1, etc.
Thanks

"Ron Coderre" wrote:

Try something like this:

B1:
=INDEX(A1:A1000,MAX(INDEX((MOD(ROW(A1:A1000),5)=0) *ISNUMBER(A1:A1000)*ROW(A1:A1000),0)))

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Ron Weaver" wrote:

Is it possible to specify a group of cells like A1,A5,A10,A15,A20, and have
Excel find the last non blank cell in the group? These are numeric values
that update a report weekly.
Thanks

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
Blank cell is not blank Otto Moehrbach Excel Discussion (Misc queries) 7 November 19th 06 03:35 PM
Summing (or counting) cells until there is a blank cell Box815 Excel Discussion (Misc queries) 3 November 17th 06 03:35 PM
Calculating only non-empty cells... Jay Excel Worksheet Functions 9 September 22nd 06 03:20 AM
Counting blank cells until value is reached Dan Excel Worksheet Functions 9 March 1st 06 12:56 PM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM


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