Vlookup

cortex10101

New Member
Joined
Jun 16, 2017
Messages
6
Hi,

I think this is a VLOOKUP problem.

I have a list of client names in column A. I then have 2 other columns (E & H) with separate dates in the future that tell me the date the client needs contacting.

I would like to create another column on a separate sheet that shows all the clients that need contacting when either of those two date columns (E or H) match today's date.

How is this done?

Thanks in advance
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Re: VLOOKUP Help

why cant you filter cols e & h for todays date?

I wanted to compile this data and several other things from other workbooks onto a different sheet rather than working within the same sheet where there is a lot of superfluous data.

Sorry, should have been clearer.
 
Upvote 0
Re: VLOOKUP Help

are the dates in cols e & h ever likely to both be the same date?

Yep there will be dates in the two columns which will be the same. There won't be on the same row but E and H could have the same date for different clients.
 
Upvote 0
Re: VLOOKUP Help

Yep there will be dates in the two columns which will be the same. There won't be on the same row but E and H could have the same date for different clients.

For example row 2 could have today's date in column E and row 3 could have today's date in column H
 
Upvote 0
Re: VLOOKUP Help

something along the lines of
Dim lr As Long
Dim c As Range, rng
Dim val_1 As String
Sheets("sheet1").Activate
lr = Range("a" & Rows.Count).End(xlUp).Row
Set rng = Range("e2:e" & lr)
For Each c In rng
Sheets("sheet1").Activate
If c.Value = Range("e1").Value Or c.Offset(0, 3).Value = Range("e1").Value Then
val_1 = c.Offset(0, -4).Value
Sheets("sheet2").Activate
lr = Range("a" & Rows.Count).End(xlUp).Row + 1
Range("a" & lr) = val_1
End If
Next c
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,199
Members
453,022
Latest member
RobertV1609

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