InputBox Count and Sum Data based on Selected Date

rylaine

New Member
Joined
Aug 5, 2016
Messages
2
Hi there,

I was hoping to create a MsgBox or InputBox where the user can select a date (or use the date in the selected cell) with three different formulas. The InputBox might read "Select Date"-- it would be extra cool if there's some way to incorporate a calendar to click the date, but maybe that's not possible.

I want to generate all three results in one MsgBox. The formulas would be as follows, but I have no idea how to translate this into VBA code. :confused:

Total Submissions: =COUNTIF(D:D,"Date")
Total Cost Changes: =SUMIF(I:I,"Date")
Total Retail Changes: =SUMIF(K:K,"Date")

And then after seeing those values, the user could just click OK out of the box.

I'm not sure if this even makes sense but I appreciate any and all help!

Thanks!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Ugh sorry, the date won't appear in columns I or K, but I want it to sum these values based on the date in column D!

Thank you!
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,184
Members
452,615
Latest member
bogeys2birdies

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