LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default match function with nested if


I'm trying to use the match function with a nested if statement. Is this
possible?

My table looks like the following.

Column
D E F G H
UNIT TERM STARTDATE ENDDATE RATE
21843 2 2/1/2009 2/7/2009 1350
21843 3 2/1/2009 2/7/2009 1040
21843 4 2/1/2009 2/7/2009 1015
21843 2 2/8/2009 2/14/2009 1350
21843 3 2/8/2009 2/14/2009 1040
21843 4 2/8/2009 2/14/2009 1015
19608 2 3/1/2009 3/7/2009 2055
19608 3 3/8/2009 3/15/2009 1725
19608 4 3/22/2009 3/29/2009 1670


I need the user to enter a value for the unit, term and date and have excel
return the matching value in the rate column. The problem is that the date
which is entered by the user will be inbetween the StartDate and EndDate
values which are in the table. I'm trying to use the match function with a
nested if statement to determine if the date is within the StartDate and
EndDate range. If it is, the match function should use the date in the
StartDate column.

For example,

User enters a unit in cell A5 = 19608

User enters a date in cell A9 3/10/2009

Term is hard coded as a value 3.

Using the table above, I'd like excel to return the value 1725

My formula is

=INDEX($H$2:$H$10,MATCH(1,($D$2:$D$10=$A$5)*($E$2: $E$10=3)*($F$2:$F$10
=IF(AND($A$9=F3, $A$9<=G3),0,F3)),0))

However, my formula doesn't work. Any ideas would be appreciated.
--
dat842
 
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
MYSTERY: NESTED INDEX AND MATCH FUNCTIONS JingleRock[_2_] Excel Worksheet Functions 28 March 14th 09 02:39 AM
nested MATCH within Array formula? katy Excel Worksheet Functions 2 January 23rd 08 02:08 AM
Nested MATCH with two tables Dave Lagergren Excel Worksheet Functions 3 September 22nd 07 12:47 AM
Nested 'IF', 'LOOKUP', 'AND' or 'INDEX', 'MATCH' JT Excel Worksheet Functions 2 February 15th 07 12:46 AM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM


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