Pulling Correct Number of Dates Based on Column Value

SamP89

New Member
Joined
Feb 2, 2016
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have a sample set of data below and need help constructing a formula for it. In the formula column below, I have the result that I am expecting from the formula I need. For this formula, I need it to check ID2 and see what the value is in the Number column. Based on this, I then need it to check the ID1 and Date column and bring back a match for the correct number of dates.

So, because 123456 has a value of 2, I need it to get a match for the first two dates only. 234567 has a value of 1, so I only need to get a match for the first date. Any ideas on how to write this?

FormulaDateID1ID2Number
Match12/7/20171234561234562
Match1/7/20181234562345671
N/A6/7/2018123456
N/A7/7/2018123456
Match10/7/2017234567
N/A11/7/2017234567
N/A1/7/2019234567
N/A2/7/2019234567
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Here is this to start, but it would be more helpful if you updated your profile to show what version of Excel you are using:
Book1
ABCDE
1FormulaDateID1ID2Number
2MATCH12/7/20171234561234562
3MATCH1/7/20181234562345671
4N/A6/7/2018123456
5N/A7/7/2018123456
6MATCH10/7/2017234567
7N/A11/7/2017234567
8N/A1/7/2019234567
9N/A2/7/2019234567
Sheet1
Cell Formulas
RangeFormula
A2:A9A2=IF(COUNTIF($C$2:C2,C2)<=VLOOKUP(C2,$D$2:$E$9,2),"MATCH","N/A")
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

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