Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Working from oldest date

Hi there hope someone can help, here goes

Date RM MR

05/08/1997 £13.64 £53.41
04/05/1998 £62.94 £246.44

i am looking for a formula to check which date is the oldest and put in the
corresponding amounts

ie as above 05/08/97 is oldest date therefore A10= £13.64 A11= £53.41 and
B10=£62.94 B11=£246.44

hope this makes sense!!!!!!!!!!!!!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Working from oldest date

Have you only got two records, or is this a slimmed-down example?

To find the oldest date you can use MIN:

=MIN(A2,A3)

or:

=MIN(range)

if you have more dates.

Then you can use VLOOKUP to retrieve the values that correspond to
that minimum date:

=VLOOKUP(MIN(A$2,A$3),$A$2:$B$3,2,0)

to get the value from column B, and:

=VLOOKUP(MIN(A$2:A$3),$A$2:$C$3,3,0)

to get the value from column C.

Hope this helps.

Pete

On Sep 14, 8:17*pm, Gibbyky2
wrote:
Hi there hope someone can help, here goes

Date * * * * * * * * * * RM * * * * * *MR

05/08/1997 * * *£13.64 £53.41
04/05/1998 * * *£62.94 £246.44

i am looking for a formula to check which date is the oldest and put in the
corresponding amounts

ie as above 05/08/97 is oldest date therefore A10= £13.64 A11= £53.41 and
B10=£62.94 B11=£246.44

hope this makes sense!!!!!!!!!!!!!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Working from oldest date

HI pete_uk

it would only ever be 2 dates but the values in relation to the dates would
change

"Pete_UK" wrote:

Have you only got two records, or is this a slimmed-down example?

To find the oldest date you can use MIN:

=MIN(A2,A3)

or:

=MIN(range)

if you have more dates.

Then you can use VLOOKUP to retrieve the values that correspond to
that minimum date:

=VLOOKUP(MIN(A$2,A$3),$A$2:$B$3,2,0)

to get the value from column B, and:

=VLOOKUP(MIN(A$2:A$3),$A$2:$C$3,3,0)

to get the value from column C.

Hope this helps.

Pete

On Sep 14, 8:17 pm, Gibbyky2
wrote:
Hi there hope someone can help, here goes

Date RM MR

05/08/1997 £13.64 £53.41
04/05/1998 £62.94 £246.44

i am looking for a formula to check which date is the oldest and put in the
corresponding amounts

ie as above 05/08/97 is oldest date therefore A10= £13.64 A11= £53.41 and
B10=£62.94 B11=£246.44

hope this makes sense!!!!!!!!!!!!!



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Working from oldest date

Well, did your try those two VLOOKUP formulae? Did they work for you
in different situations?

Pete

On Sep 14, 8:47*pm, Gibbyky2
wrote:
HI pete_uk

it would only ever be 2 dates but the values in relation to the dates would
change



"Pete_UK" wrote:
Have you only got two records, or is this a slimmed-down example?


To find the oldest date you can use MIN:


=MIN(A2,A3)


or:


=MIN(range)


if you have more dates.


Then you can use VLOOKUP to retrieve the values that correspond to
that minimum date:


=VLOOKUP(MIN(A$2,A$3),$A$2:$B$3,2,0)


to get the value from column B, and:


=VLOOKUP(MIN(A$2:A$3),$A$2:$C$3,3,0)


to get the value from column C.


Hope this helps.


Pete


On Sep 14, 8:17 pm, Gibbyky2
wrote:
Hi there hope someone can help, here goes


Date * * * * * * * * * * RM * * * * * *MR


05/08/1997 * * *£13.64 £53.41
04/05/1998 * * *£62.94 £246.44


i am looking for a formula to check which date is the oldest and put in the
corresponding amounts


ie as above 05/08/97 is oldest date therefore A10= £13.64 A11= £53.41 and
B10=£62.94 B11=£246.44


hope this makes sense!!!!!!!!!!!!!- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default Working from oldest date

Hello,

If I understand you correctly, select A10:B10 and array-enter
=INDEX(B1:B2,1+(A1A2)):INDEX(C1:C2,1+(A1A2))

Then array-enter into A11:B11:
=INDEX(B1:B2,1+(A1<=A2)):INDEX(C1:C2,1+(A1<=A2))

Regards,
Bernd


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Working from oldest date

Why not simply:

A10: =INDEX(B1:B2,1+($A1$A2))
A11: =INDEX(B1:B2,1+($A1<=$A2))

Copied across to B10:B11

:-)

--
Biff
Microsoft Excel MVP


"Bernd P" wrote in message
...
Hello,

If I understand you correctly, select A10:B10 and array-enter
=INDEX(B1:B2,1+(A1A2)):INDEX(C1:C2,1+(A1A2))

Then array-enter into A11:B11:
=INDEX(B1:B2,1+(A1<=A2)):INDEX(C1:C2,1+(A1<=A2))

Regards,
Bernd



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default Working from oldest date

Hello Biff,

Why not simply:

A10: =INDEX(B1:B2,1+($A1$A2))
A11: =INDEX(B1:B2,1+($A1<=$A2))

Copied across to B10:B11

:-)


....Yeah, that'll work :-)

Regards,
Bernd

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
Substracting from oldest date Janelle S[_2_] Excel Discussion (Misc queries) 1 May 18th 08 11:39 AM
Finding the oldest date in a column Robert Smith Excel Worksheet Functions 6 November 13th 07 12:56 AM
Find Oldest Date Qaspec Excel Discussion (Misc queries) 7 July 5th 07 09:02 PM
oldest date not completed Dreamstar_1961 Excel Worksheet Functions 7 April 2nd 07 01:46 PM
Detecting Oldest Date On Spreadsheet Keiron James Keeble Excel Discussion (Misc queries) 3 January 19th 05 01:09 AM


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