#1   Report Post  
David
 
Posts: n/a
Default MATCH function

How can I get the functionality of the MATCH function to match a text to the
LAST match in a column. The MATCH function returns the location of the FIRST
match.

This example shows what I am trying to do:
A B C
1 Name1 NumOfDays1 StartDate
2 Name2 NumOfDays2
3 Name3 NumOfDays3
4 Name5 NumOfDays4
5 Name1 NumOfDays5
6 Name5 NumOfDays6
7 Name1 NumOfDays7
8 Name2 NumOfDays8
9 Name5 NumOfDays9

NameN (in cloumn A) is a text and can have any value. NumOfDaysN (in column
B) is an integer and have any value. StartDate(in cell C1) is a date. I need
a formula to place in cells C2:C9. Foe example, the formula in cell C9 would
look in cells A1:A8 and find the LAST item in the range that matches the text
in cell A9, which would be cell A6 (becase both cell A9 and A6 contain
Name5), than add NumOfDays9 (cell B9) to the date that would be in cell C6,
and calculate a new date for cell C9.

If you would be kind enough to help me even more, you could give me a
formula that when it adds number of days to a date, it calculates the new
date as if it were adding only work days. Another words, if a weekend falls
between the old and the new date, it adds 2 extra days to calculate the new
date.

I really appreciate the help. I spent half a day yesterday to try to figure
out how to do this but was unsuccessful.
  #2   Report Post  
JMB
 
Posts: n/a
Default

You may need to double check the range references and also review
absolute/relative references:

=INDEX(C1:C8,MAX((A1:A8=A9)*ROW(A1:A8)))+$B$9

This is an array formula - which must be confirmed w/ Cntrl+Shift+Enter.


"David" wrote:

How can I get the functionality of the MATCH function to match a text to the
LAST match in a column. The MATCH function returns the location of the FIRST
match.

This example shows what I am trying to do:
A B C
1 Name1 NumOfDays1 StartDate
2 Name2 NumOfDays2
3 Name3 NumOfDays3
4 Name5 NumOfDays4
5 Name1 NumOfDays5
6 Name5 NumOfDays6
7 Name1 NumOfDays7
8 Name2 NumOfDays8
9 Name5 NumOfDays9

NameN (in cloumn A) is a text and can have any value. NumOfDaysN (in column
B) is an integer and have any value. StartDate(in cell C1) is a date. I need
a formula to place in cells C2:C9. Foe example, the formula in cell C9 would
look in cells A1:A8 and find the LAST item in the range that matches the text
in cell A9, which would be cell A6 (becase both cell A9 and A6 contain
Name5), than add NumOfDays9 (cell B9) to the date that would be in cell C6,
and calculate a new date for cell C9.

If you would be kind enough to help me even more, you could give me a
formula that when it adds number of days to a date, it calculates the new
date as if it were adding only work days. Another words, if a weekend falls
between the old and the new date, it adds 2 extra days to calculate the new
date.

I really appreciate the help. I spent half a day yesterday to try to figure
out how to do this but was unsuccessful.

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
I NEED HELP with the SPELLNUMBER Function vag Excel Worksheet Functions 0 June 21st 05 08:17 AM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
VlLOOKUP function with MATCH Amnon Wilensky Excel Worksheet Functions 2 June 6th 05 07:38 PM
Match function selecting first value it matches on exactly Paul K. Excel Worksheet Functions 1 February 24th 05 08:57 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


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