How do perform the Sum

daffyyd

New Member
Joined
May 11, 2011
Messages
4
Hi All,

Am working on a large data that is repeatative and I would like to have function to assist. Am new to VBA

I have a sheet (Called it Sheet 1) that has got 18 columns and Hudreds of rows. The number of rows depends on the query from another source.I have created 2 parameters in Sheet 2 and Command Button. Parameter 1 is data that is in Sheet 1column C and Parameter 2 is data in Sheet1 column E.

My aim is to Sum column R if Paratemer 1 and 2 are met and have the sum value in Sheet 2 Row 10 column 2.

How do I achieve this.

Please assist

Regards
David
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Welcome to the board!

Might I ask first what version of Excel you're using, as this could have a bearing on any approach to this.
 
Upvote 0
Try

=SUMIFS(Sheet1!R:R,Sheet1!C:C,parameter1,Sheet1!E:E,parameter2)

Change the sheet names and parameters to match the correct ranges in your sheet.
 
Upvote 0

Forum statistics

Threads
1,224,551
Messages
6,179,476
Members
452,915
Latest member
hannnahheileen

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