Forum Discussion

jonh54's avatar
jonh54
Copper Contributor
Sep 12, 2022
Solved

Excel - Select a rate from a table using Multiple criteria

I have created two tables Table1 Contains current and past rates with Client No StartDate Enddate & Rate. Table2 Contains ClientNo and job details.  + the calculation of (JobTime X Ratecharged )at ...
  • Martin_Weiss's avatar
    Sep 12, 2022

    Hi jonh54 

     

    in Microsoft 365, you could use the FILTER function to get the proper rate.

     

    =FILTER($D$4:$D$12,($A$4:$A$12=G4)*($B$4:$B$12<=H4)*($C$4:$C$12>=H4))

    Note:
    In my example I assume, that there will always be just a single match for the lookup-criteria. Otherwise, the formula in J4 will spill into the next cells. 

Resources