ernolander
New Member
- Joined
- May 3, 2018
- Messages
- 1
Hi all,
I manage a list of properties, which are usually inspected monthly. Our master sheet has all 800 properties, and the inspection results are kept in a separate sheet (Resident Data.xlsx). Doing lookups to return these values has worked well, using both INDEX/MATCH and XLOOKUP - I match the listed name against the inspection report and return the inspection rating.
I've now been asked to produce a report that shows two results for each property, as the inspection schedule has increased to twice monthly. This is where my expertise fails...
Here's what I've tried in terms of IF statements:
=IF(AND('[Resident Data.xlsx]CL June 20 '!$A:$A>'June 20 Regions'!$B$34,'[Resident Data.xlsx]CL June 20 '!$A:$A<'June 20 Regions'!$B$35),XLOOKUP(A101,'[Resident Data.xlsx]CL June 20 '!$C:$C,'[Resident Data.xlsx]CL June 20 '!$G:$G),"")
$B$34 holds 31/5/20 as a date
$B$35 holds 16/6/20 as a date
This formula generates a false, ie, blank statement for every line.
When I modify it like this, to capture the later dated entries, everything shows up:
=IF('[Resident Data.xlsx]CL June 20 '!$A:$A>='June 20 Regions'!$B$35,(XLOOKUP(A101,'[Resident Data.xlsx]CL June 20 '!$C:$C,'[Resident Data.xlsx]CL June 20 '!$G:$G)),"")
I know I'm more than likely using the IF statements wrong, but any insight or help with this would be so welcome.
Many thanks,
Erik Nolander
I manage a list of properties, which are usually inspected monthly. Our master sheet has all 800 properties, and the inspection results are kept in a separate sheet (Resident Data.xlsx). Doing lookups to return these values has worked well, using both INDEX/MATCH and XLOOKUP - I match the listed name against the inspection report and return the inspection rating.
I've now been asked to produce a report that shows two results for each property, as the inspection schedule has increased to twice monthly. This is where my expertise fails...
Here's what I've tried in terms of IF statements:
=IF(AND('[Resident Data.xlsx]CL June 20 '!$A:$A>'June 20 Regions'!$B$34,'[Resident Data.xlsx]CL June 20 '!$A:$A<'June 20 Regions'!$B$35),XLOOKUP(A101,'[Resident Data.xlsx]CL June 20 '!$C:$C,'[Resident Data.xlsx]CL June 20 '!$G:$G),"")
$B$34 holds 31/5/20 as a date
$B$35 holds 16/6/20 as a date
This formula generates a false, ie, blank statement for every line.
When I modify it like this, to capture the later dated entries, everything shows up:
=IF('[Resident Data.xlsx]CL June 20 '!$A:$A>='June 20 Regions'!$B$35,(XLOOKUP(A101,'[Resident Data.xlsx]CL June 20 '!$C:$C,'[Resident Data.xlsx]CL June 20 '!$G:$G)),"")
I know I'm more than likely using the IF statements wrong, but any insight or help with this would be so welcome.
Many thanks,
Erik Nolander