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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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,226,739
Messages
6,192,739
Members
453,754
Latest member
milestogo

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