Sum Column of data based on info in related cell

bradjedis
4StarLounger
Posts: 538
Joined: 30 Mar 2010, 18:49
Location: United States

Sum Column of data based on info in related cell

Post by bradjedis »

Greetings,

I have the following situation: data in col G5 thru G46. in Col H5 thru H46 is either a Yes or No.

I am needing to include the number amount in G5:G46 IF the answer is yes, then sum the total.


Thanks,
Brad

User avatar
HansV
Administrator
Posts: 78393
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Sum Column of data based on info in related cell

Post by HansV »

Does the following do what you want?

=SUMIF(H5:H46,"Yes",G5:G46)
Best wishes,
Hans

bradjedis
4StarLounger
Posts: 538
Joined: 30 Mar 2010, 18:49
Location: United States

Re: Sum Column of data based on info in related cell

Post by bradjedis »

Hans,

Absolutely! Thanks again, and take a break. Hoist one for the team!

User avatar
HansV
Administrator
Posts: 78393
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Sum Column of data based on info in related cell

Post by HansV »

:cheers:
Best wishes,
Hans