Reverse lookup with multiple criteria

Showl17

New Member
Joined
May 21, 2021
Messages
1
Office Version
  1. 365
Platform
  1. MacOS
Hello,
How do you create a formula where it has multiple search criteria? We are a facility that charges a one time admin fee per person that is valid for a year. How do you create a formula that will do a reverse look-up for the name (column A) and date (column B) and return a value ($50) in column C only if it hasn't been previously billed within the last 365 days? Our current spreadsheet is thousands of rows and new data is added weekly. Attached is a simplified example. To make it more complicated, Column C already has an existing formula that would only populate if specific cells had data: =IF(AND(ISBLANK(D2:H2)),"",IF(SUM(D2:H2)=0,"",50)).

Any help would be appreciated. Thanks!


Screen Shot 2021-05-21 at 4.43.05 PM.png
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Welcome to the MrExcel board!

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.

Is this what you mean? I have assumed that entries for a particular name are chronological down the sheet. That is, when looking at any particular row, the most recent previous entry for that person will be the first entry that you come to for that person working up the sheet from the row you are looking at. If that is not the case we can do it a different way.

21 05 22.xlsm
ABCDEFGH
1NameDateAdmin FeeT1T2T3T4T5
2N102-Mar-20502035
3N202-May-2050153510
4N315-Jun-2050201550
5N414-Jun-20501510
6N531-Jul-20501510
7N131-Dec-20 50
8N402-Feb-21 2035
9N520-Aug-215035
Admin Fee
Cell Formulas
RangeFormula
C2:C9C2=IF(OR(SUM(D2:H2)=0,XLOOKUP(A2,A$1:A1,B$1:B1,0,,-1)>EDATE(B2,-12)),"",50)
 
Last edited:
Upvote 0
@Peter

can we do this if we do not have 365 version? pls suggest whether I am correct?

as
Hello,
How do you create a formula where it has multiple search criteria? We are a facility that charges a one time admin fee per person that is valid for a year. How do you create a formula that will do a reverse look-up for the name (column A) and date (column B) and return a value ($50) in column C only if it hasn't been previously billed within the last 365 days? Our current spreadsheet is thousands of rows and new data is added weekly. Attached is a simplified example. To make it more complicated, Column C already has an existing formula that would only populate if specific cells had data: =IF(AND(ISBLANK(D2:H2)),"",IF(SUM(D2:H2)=0,"",50)).

Any help would be appreciated. Thanks!


View attachment 39217
as per your dates none of them have completed 365 days yet then why you have put 50 against them? did not understand your question


Book1
ABC
1NameDateDays
2N12-Mar-20320.00
3N22-May-20275.00
4N315-Jun-20245.00
5N414-Jun-20245.00
6N531-Jul-20211.00
7N131-Dec-20102.00
8N42-Feb-2179.00
9N520-Aug-21-65.00
Sheet1
Cell Formulas
RangeFormula
C2:C9C2=NETWORKDAYS(B2,TODAY())
 
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,496
Members
449,089
Latest member
Raviguru

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top