Consulting

Results 1 to 3 of 3

Thread: Lookup with interval

  1. #1
    VBAX Tutor
    Joined
    Sep 2007
    Posts
    265
    Location

    Lookup with interval

    hi there

    hope you are doing good.

    Please advise how to lookup within an interval value and match the criteria.

    I highly appreciate if you can advise me with formula and using vba.

    please find the attached for your reference.
    Thanks in advance.

  2. #2
    VBAX Mentor
    Joined
    Jun 2004
    Posts
    363
    Location
    Change your formula to:
    =SUMPRODUCT(--(C3>=LEFT($F$14:$F$31,FIND(" ",$F$14:$F$31)-1)*1)*--(C3<=MID($F$14:$F$31,FIND(" - ",$F$14:$F$31)+ 3,10)*1)*--(D3=$G$14:$G$31)*($H$14:$H$31))
    The formula now looks for the " - " to determine where to look for the upper end of the interval.

    Your first "should be" is incorrect. The formula was calculating correctly for the combination supplied.

  3. #3
    VBAX Tutor
    Joined
    Sep 2007
    Posts
    265
    Location
    hi mbarron

    It's work. thank you and highly appreciated it.

    Have a nice day!

Posting Permissions

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