Macro to find the rows i need

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,194
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,
Ok so I have a sheet called "All Data"
in here I have a
list of names in column C
Identifyer in Column A
And the Date or the word "Time" in column B


so heres what i want in sheet "Input" cell D10 i have a Name, (this name can appear more than once in column C),

So I need the macro to go look for the name in column C and find the Row that has the earliest date for that name,
and input the row number into Inputsheet D12

please help if you can

Thanks

Tony
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hey Tony,

You might be able to avoid VBA and use a formula to solve this. Something like the MINIFS function could work perhaps?

Just a thought.

Oz
 
Upvote 0
Thanks Breadzeppelin for the suggestion,
however I'll be using this macro within a mach bigger macro once i have worked out the code so i do need it to be vba
Thanks
Tony
 
Upvote 0

Forum statistics

Threads
1,213,513
Messages
6,114,072
Members
448,546
Latest member
KH Consulting

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