+ Reply to Thread
Results 1 to 4 of 4

Index/Match Problem

  1. #1
    Registered User
    Join Date
    07-01-2007
    Posts
    2

    Index/Match Problem

    Thank you for a great resource. I am having issues getting the attached to work correctly. I am using an index/match formula which returns the correct result if, and only if, all parameters are present on the schedule worksheet. What I need it to do additionally is if the age is below "1973" for a given size, to return the 1973 value for that given size. For example, if 2 inch 1973 is equal to 2,770, 2 inch 1972,1971,1955, etc is also worth 2,770. Essentially 1973 represents the floor value and all older receives that value. I promised my employer that I would have this done by monday and have been freaking out all weekend over it. Any help that you all may be able to provide will be very much appreciated.

    Thank you,
    Mike
    Attached Files Attached Files

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    =IF(Age<1973,INDEX(Table,MATCH(1973,AgeList,0),MATCH(Size,SizeList,0)),INDEX(Table,MATCH(Age,AgeList,0),MATCH(Size,SizeList,0)))

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    07-01-2007
    Posts
    2

    Talking

    Quote Originally Posted by VBA Noob
    Maybe

    =IF(Age<1973,INDEX(Table,MATCH(1973,AgeList,0),MATCH(Size,SizeList,0)),INDEX(Table,MATCH(Age,AgeList,0),MATCH(Size,SizeList,0)))

    VBA Noob
    You absolutely Rock!!!!! Thanks a million!

    --Mike

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Glad it helped

    VBA Noob

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1