Extracting the newest date based on 2 criteria

ambepat

Board Regular
Joined
May 4, 2014
Messages
127
Hi Guys,

I am trying to extract records for the newest date within a set of data that meets 2 criteria.

I have tried this array formula below but it returns a #VALUE error.

Here is the formula I have tried. For some reason it is not working and I need to understand why
=LARGE(IF($L$2:$L$671=$J2,IF($D$2:$D$6584=N$1,$G$2:$G$6584)),1)

Any help will be appreciated.

Thanks,

Patrick
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Man, i just went in and took out all of the cells with the Value and put them blank and the formula worked. Why is that?

=MAX(IF(IFERROR('Data - PMC'!$U$2:$U$6584,"")='Service Matrix'!$C18,IF('Data - PMC'!$H$2:$H$6584='Service Matrix'!AW$17,IF(ISNUMBER('Data - PMC'!$M$2:$M$6584),'Data - PMC'!$M$2:$M$6584))))

should also work.

When there is an error value in a range, most functions cannot ignore them, so the result also takes on an error value.
 
Upvote 0
=MAX(IF(IFERROR('Data - PMC'!$U$2:$U$6584,"")='Service Matrix'!$C18,IF('Data - PMC'!$H$2:$H$6584='Service Matrix'!AW$17,IF(ISNUMBER('Data - PMC'!$M$2:$M$6584),'Data - PMC'!$M$2:$M$6584))))

should also work.

When there is an error value in a range, most functions cannot ignore them, so the result also takes on an error value.

Thanks Aladin for your help. I heard a lot about you from Mike Girvin Excel fun so was going to as you what is the best way to learn VBA. I am trying to make my skills better. I find it difficult to understand VBA watching videos and I am thinking of getting a mentor or something. Do you have any good advice?
 
Upvote 0
Thanks Aladin for your help. I heard a lot about you from Mike Girvin Excel fun so was going to as you what is the best way to learn VBA. I am trying to make my skills better. I find it difficult to understand VBA watching videos and I am thinking of getting a mentor or something. Do you have any good advice?

See whether this helps: https://www.mrexcel.com/forum/excel-questions/1032861-searching-vba-video-course-examples-learn-vba-short-time.html?highlight=hiker
 
Upvote 0

Forum statistics

Threads
1,223,905
Messages
6,175,297
Members
452,633
Latest member
DougMo

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