Function for adding cells together but multiplying cells if "contains x text"

darkshotguns

New Member
Joined
Sep 3, 2020
Messages
3
Office Version
  1. 2019
Platform
  1. Windows
Dont know if it's possible, but I'm trying to find a formula for excel. Looking to add multiple cells together, but double certain cells if another cell has certain text. My spreadsheet will update depending on the data. (Example Cell A1, may have an "X" or "Dot" in the cell depending on Cell B1.) (I need to add up all the cells in B1-B20, but double certain cells if Cells a1-A20 contain certain text.)
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Welcome to MrExcel.

How about:

Book1
ABCD
11245
22
33
4x4
55
6x6
77
88
99
10x10
1111
1212
1313
1414
15x15
1616
1717
1818
1919
2020
Sheet3
Cell Formulas
RangeFormula
D1D1=SUMPRODUCT(B1:B20,(A1:A20="x")+1)
 
Upvote 0
I had to do some overhauling of how the cells were laid out, but the formula worked. thank you.
 
Upvote 0

Forum statistics

Threads
1,215,453
Messages
6,124,920
Members
449,195
Latest member
Stevenciu

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