Sumifs vba formula with userform

chintu

New Member
Joined
Apr 1, 2018
Messages
17
Hi Team,

In sheet2 I have some data for 2017 and 2018 from January to December of product A to Z

Here I take the balance of products using sumifs (=SUMIFS(Sheet2!D:D,Sheet2!A:A,"2018",Sheet2!B:B,"JANUARY",Sheet2!C:C,F4) formula in sheet1.

I want to do this activity as a macro using user-form like:-

I if click 2018 and January month means I will get only my selection data for the product.

USER_FORM:-
[TABLE="width: 175"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD="align: right"]2018[/TD]
[TD="align: left"]
clip_image001.png

<tbody>
</tbody>
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"]2017[/TD]
[TD="align: left"]
clip_image002.png

<tbody>
</tbody>
[/TD]
[/TR]
[TR]
[TD="align: left"]
clip_image003.png

<tbody>
</tbody>
[/TD]
[TD]JANUARY[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: left"]
clip_image004.png

<tbody>
</tbody>
[/TD]
[TD]FEBRUARY[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: left"]
clip_image004.png

<tbody>
</tbody>
[/TD]
[TD]MARCH[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: left"]
clip_image004.png

<tbody>
</tbody>
[/TD]
[TD]APRIL[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: left"]
clip_image004.png

<tbody>
</tbody>
[/TD]
[TD]MAY[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: left"]
clip_image004.png

<tbody>
</tbody>
[/TD]
[TD]JUNE[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: left"]
clip_image004.png

<tbody>
</tbody>
[/TD]
[TD]JULY[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: left"]
clip_image004.png

<tbody>
</tbody>
[/TD]
[TD]AUGUST[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: left"]
clip_image004.png

<tbody>
</tbody>
[/TD]
[TD]SEPTEMBER[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: left"]
clip_image004.png

<tbody>
</tbody>
[/TD]
[TD]OCTOBER[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: left"]
clip_image004.png

<tbody>
</tbody>
[/TD]
[TD]NOVEMBER[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: left"]
clip_image004.png

<tbody>
</tbody>
[/TD]
[TD]DECEMBER[/TD]
[TD]

[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
You can not host a picture from your computer. You will need to use a hosting site like
Imgur
or other image hosting site.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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