Pull data from adjacent and selected row cells based on user inputted date range

splreece

Board Regular
Joined
May 29, 2015
Messages
72
MOrning all,

I am sure this is a standard fix but I can only really find formula and vba based on fixed dates and adjacent cells.

I am looking to run reports where my users can dictate a date range

Date from = Cell "L2"
Date to = Cell "M2"

I need to be able to search column "S" for any rows that fall within the date range above and then pull on a new sheet the following columns data:
"k", "h", "ag", "t", "u through to af".

Does this make sense?

any help would be appreciated.
 
works like a charm...

ive used this site a few times, and I am every time trying to use common sense and logic to figure out my own code, but I am learning it is really something that cant be learned by manipulating or dissecting others code, it is a must that I take a formal course in it...

(very comfy with excel but vba is a mystery)
 
Upvote 0

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
works perfectly...

I'm quickly realizing that no matter how competent at excel I am, no matter of manipulating existing code and using logic will help learn VBA... definitely has to be a course or some sort of program.
 
Upvote 0
That's how I've learned most of the vba I know - and mostly on this forum. :)
For example, being able to read data into an array from disjoint columns and in an unusual order like I used in this code, I learned from pgc01 in this thread.
 
Upvote 0

Forum statistics

Threads
1,215,326
Messages
6,124,267
Members
449,149
Latest member
mwdbActuary

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