If, And, VLOOKUP Nesting Help

graduateguardian

New Member
Joined
Feb 12, 2025
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello.

I am trying to create a report based data in a table on another tab in Excel. I currently have my report set up with a standard VLOOKUP to change the values on the report based on a certain cell (Outfall ID). This works great however I want to be able to return the values based on a specific month as there will be monthly tracking for multiple locations. Below is what I have. I am looking for a formula that allows the data to change based on the outfall id and the month the inspection was completed.

I have tried this formula but it doesn't work right: =IF(AND('Raw Data Table'!$Z:$Z=1,'Raw Data Table'!$A:$A=1),"TRUE",VLOOKUP($C$10,'Raw Data Table'!$A:$R,5,FALSE))

Data Tabel:

1739368293217.png


Form for output. You can see the VLOOKUP currently in cell C12. I want this to be able reference the outfall id (Column A) with either the inspection date (Column B) or the month number (Column Z)

1739368206670.png
 

Attachments

  • 1739368108370.png
    1739368108370.png
    16.7 KB · Views: 1

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Try:
Excel Formula:
=XLOOKUP(1,(EOMONTH(+'Raw Data Table'!$B:$B,0)=C8)*('Raw Data Table'!$A:$A=C10),'Raw Data Table'!$E:$E,"not found")
 
Upvote 0
Solution
That work! Thank you very much.
The marked solution has been changed accordingly. In your future questions, please mark the post as the solution that actually answered your question, instead of your feedback message as it will help future readers. No further action is required for this thread.
 
Upvote 0

Forum statistics

Threads
1,226,513
Messages
6,191,476
Members
453,658
Latest member
healmo

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