Use of SUMIF Function to get total from different column

yellowcabguy

Active Member
Joined
Dec 28, 2005
Messages
440
Howdy,

Here is what I am trying to do:

Have multiple columns and multiple rows of data in spreadsheet.
I want to first select ONLY those records with a specific value (lets say value is YES)from column D (Cells contain either Yes or No). I then (ONLY FOR THOSE selected records) want to get the total from column X (Hours worked) for the records selected from Column D.

ANy thoughts on how to do this?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Something like this perhaps.

=SUMIF(D1:D10,"Yes",X1:X10)
 
Upvote 0
If I understnd you correctly, you're already there--you know you need to use SUMIF in an empty cell on the same sheet as the data as follows:

=SUMIF(D:D,"Yes",X:X)
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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