If statement

dchaney

Well-known Member
Joined
Jun 4, 2008
Messages
732
Office Version
  1. 2016
Platform
  1. Windows
I currently have a spreadsheet that looks at Cell B3 if B3 = Engineering then add cells C3 through G3 **=IF($B3="Engineering",SUM($C3:$G3),"")**

I am trying to figure out how to look at B3:B36, for any cell in that range that = Engineering I want it to add the amounts in C?

I tried =IF($B3:$B36="Engineering",SUM($C3:$G3),"")

Example: The formula would return 5 for the below

Engineering 3
Purchasing 2
Engineering 2
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Thank you all, I knoiw I was missing something easy
 
Upvote 0
Two more alternative,
Just in case interested :)


Excel Workbook
ABCDE
1Engineering35CTRL Shift Enter
2Purchasing25Just Enter
3Engineering2
Sheet1
 
Upvote 0

Forum statistics

Threads
1,224,504
Messages
6,179,144
Members
452,891
Latest member
JUSTOUTOFMYREACH

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