Conditional Formatting

darksnowman56

New Member
Joined
Jun 22, 2007
Messages
32
column A has dollar amounts, column B has a yes/no list, and a total at the bottom of column A. im assuming conditional formatting will help me with what im looking to do, but im having a little trouble with the formula. What i need is a formula that says if column B has a yes then the number next to the yes (in column A) will be totaled up. So only numbers next to the yes will be totaled in the total box at the bottom of column A.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Not conditional formatting, you will want SUMIF() for this:
Excel Workbook
AB
125yes
230no
319yes
440no
534yes
690no
725yes
8103
Sheet2
 
Upvote 0
that's not conditional formatting. Conditional formatting changes the FORMAT of a cell based on it's value. It doesn't do any mathematical fomulations. What you want is a sumif formula.

=SUMIF(B1:B1000,"Yes",A1:A1000)
 
Upvote 0
you asked about conditional formatting, but your message talks about summing. So I think you want the sumif function
 
Upvote 0
if you want to total only those A values which has corresponding B value as "yes" and if your data is from A1 to B9 use this formula

=SUMPRODUCT(($B$1:$B$9="yes")*($A$1:$A$9))

modify the formula to suit you.
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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