Multiple Vlookups based off specific Groups resulting in N/A

Achdus

New Member
Joined
Apr 24, 2018
Messages
2
Hi all
This is my first post but the help I've been seeing here is wonderful so I wanted to run this by you:

I am working on a report that contains a main sheet with various names of clients and other vital information. This sheet is then set up to read via a vlookup from a number of additional sheets based off specific information for the clients. So if client Adam is in Group C, I want the vlookup to read from the sheets that pertain to Group C and report back an appropriate date. Based off that info, I calculate the status whether the dates reported back are Overdue or Not due (Overdue=over 365 days, Not due = on sheet for under 30 days or completed within 365 days). However, there are certain clients that appear on my main sheet but do not appear on the sheets for the multiple Groups. Therefore, it is returning an #N/A. I want my Overdue/Not Due status to calculate clients with an N/A as Overdue. I am assuming the easiest way to do this is by adding the #N/A into my status formula but unsure how to do so. Would love some assistance with this.

Formula for Vlookup across the multiple groups:

=IF(E241="Group A",VLOOKUP(D241,'Group A'!A:AI,30,0),IF(E241="Group B",VLOOKUP(D241,'Group B'!A:Q,7,0),IF(E241="Group C",VLOOKUP(D241,'Group C'!A:G,6,0),IF(E241="Group D",VLOOKUP(D241,'Group D'!A:G,6,0)))))

Formula to calculate Overdue/Not Due Status:

=IF(J241>30,IF(L241>365,"Overdue","Not due"),"Not Due")

So is there any way to add #N/A to the status formula to calculate it as Overdue?

Thanks so much!!
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

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