Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 128
Default Formula needed to show the second to last figure in range of cells

In cell AR12 I have entered the following formula, which works fine. It is
designed to show the last figure entered in any 4th cell in the range G12 to
AN12 (inclusive). For example, if the last figure entered, appears in cell
V12, then AR12 should show the V12 value.

=IF(COUNT(G12,J12,M12,P12,S12,V12,Y12,AB12,AE12,AH 12,AK12,AN12)=0,"",INDIRECT(CONCATENATE("R",ROW(), "C",((COUNT(G12,J12,M12,P12,S12,V12,Y12,AB12,AE12, AH12,AK12,AN12))*3)+4),FALSE))

However, I would now also like to show the second to last figure entered, in
order to do a comparison. So where V12 contains the last available figure, I
would like to show in AS12, the value of S12 (the 4th cell prior to the last
entered figure).

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Formula needed to show the second to last figure in range of cells

=IF(COUNT(G12,J12,M12,P12,S12,V12,Y12,AB12,AE12,AH 12,AK12,AN12)=0,"",INDIRECT(CONCATENATE("R",ROW(), "C",((COUNT(G12,J12,M12,P12,S12,V12,Y12,AB12,AE12, AH12,AK12,AN12))*3)+1),FALSE))

"Sarah (OGI)" wrote:

In cell AR12 I have entered the following formula, which works fine. It is
designed to show the last figure entered in any 4th cell in the range G12 to
AN12 (inclusive). For example, if the last figure entered, appears in cell
V12, then AR12 should show the V12 value.

=IF(COUNT(G12,J12,M12,P12,S12,V12,Y12,AB12,AE12,AH 12,AK12,AN12)=0,"",INDIRECT(CONCATENATE("R",ROW(), "C",((COUNT(G12,J12,M12,P12,S12,V12,Y12,AB12,AE12, AH12,AK12,AN12))*3)+4),FALSE))

However, I would now also like to show the second to last figure entered, in
order to do a comparison. So where V12 contains the last available figure, I
would like to show in AS12, the value of S12 (the 4th cell prior to the last
entered figure).

Any ideas?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 128
Default Formula needed to show the second to last figure in range of c

Great, that worked!
Cheers

"Toppers" wrote:

=IF(COUNT(G12,J12,M12,P12,S12,V12,Y12,AB12,AE12,AH 12,AK12,AN12)=0,"",INDIRECT(CONCATENATE("R",ROW(), "C",((COUNT(G12,J12,M12,P12,S12,V12,Y12,AB12,AE12, AH12,AK12,AN12))*3)+1),FALSE))

"Sarah (OGI)" wrote:

In cell AR12 I have entered the following formula, which works fine. It is
designed to show the last figure entered in any 4th cell in the range G12 to
AN12 (inclusive). For example, if the last figure entered, appears in cell
V12, then AR12 should show the V12 value.

=IF(COUNT(G12,J12,M12,P12,S12,V12,Y12,AB12,AE12,AH 12,AK12,AN12)=0,"",INDIRECT(CONCATENATE("R",ROW(), "C",((COUNT(G12,J12,M12,P12,S12,V12,Y12,AB12,AE12, AH12,AK12,AN12))*3)+4),FALSE))

However, I would now also like to show the second to last figure entered, in
order to do a comparison. So where V12 contains the last available figure, I
would like to show in AS12, the value of S12 (the 4th cell prior to the last
entered figure).

Any ideas?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Formula needed to show the second to last figure in range of cells

"Toppers" wrote...
=IF(COUNT(G12,J12,M12,P12,S12,V12,Y12,AB12,AE12,A H12,AK12,AN12)=0,"",
INDIRECT(CONCATENATE("R",ROW(),"C",((COUNT(G12,J1 2,M12,P12,S12,V12,Y12,
AB12,AE12,AH12,AK12,AN12))*3)+1),FALSE))

....

Doesn't have to be volatile. Since this would be entered in AS12,

=IF(COUNT((G12,J12,M12,P12,S12,V12,Y12,AB12,AE12,A H12,AK12,AN12))<2,"",
INDEX((G12,J12,M12,P12,S12,V12,Y12,AB12,AE12,AH12, AK12,AN12),1,1,
COUNT((G12,J12,M12,P12,S12,V12,Y12,AB12,AE12,AH12, AK12,AN12))-1))

or

=IF(COUNT((G12,J12,M12,P12,S12,V12,Y12,AB12,AE12,A H12,AK12,AN12))<2,"",
INDEX(B12:AN12,COUNT((G12,J12,M12,P12,S12,V12,Y12, AB12,AE12,AH12,AK12,
AN12))*3))

or

=IF(SUMPRODUCT((MOD(COLUMN(G12:AN12),3)=1)*ISNUMBE R(G12:AN12))<2,"",
LOOKUP(2,1/(MOD(COLUMN(G12:AN12),3)=1)/ISNUMBER(G12:AN12),D12:AK12))

Note: I changed the condition from =0 to <2 because if there's only one
value in these cells (in G12), there's no previous value.


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
Show decimals only when needed betany70 Excel Discussion (Misc queries) 3 July 25th 07 03:22 PM
Trying to figure out a formula for range of numbers? Mary C[_2_] Excel Worksheet Functions 2 April 10th 07 02:32 PM
When in filter mode status bar doesn't show range of cells filted Marie McNamee Excel Worksheet Functions 1 November 20th 06 03:18 PM
How do I not show certain Letters in a range of cells in excel? Taryn McGregor Excel Worksheet Functions 2 October 4th 06 09:49 PM
How do I concatenate two currency cells to show a price range? nevermore627 Excel Worksheet Functions 5 June 30th 06 05:03 PM


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