IsDate, Paste Special Question...

sharksandwich

New Member
Joined
Jan 4, 2010
Messages
9
What works best? IsDate?
I am semi new to VBA and have only performed basics and I have something that has stumped me.

Description: This one has a bit of everything involved.
I need to write/modify a VBA macro that can paste special value depending on if the date matches. In otherwords on Sheet1 the user chooses the month by a dropdown menu by month. Sheet 2 has that month's data with sums. Sheet 3 is the month end data (with all 12 months across top rows) & we are trying to capture monthly data from sheet 2 and then paste special to get the value populated in the correct field by month. At the end of the month the client/user will run the macro to populate the info on the last sheet and begin next months data.

I have looked at "IsDate" then match, index functions and if statements but just can't put it all together.


Daily Census Sheet: contains the date drop down by month in A4
Purchases Sheet: COGS or cost of goods sold summed in E4 by way of VLookup.
Inventory Sheet: Contains header rows by date with COGS for each month which is being copied manually into D29, E29, F29 etc.

Will be happy to provide more info if needed. And... if it isn't clear, I will be happy to send spreadsheet.

It could be an ifelse, match, index, or indirect based from an IsDate statement. Just not able to get anything to do the trick.

Thanks in advance!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,214,821
Messages
6,121,755
Members
449,049
Latest member
excelknuckles

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