Combine formula into one formula

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,603
Office Version
  1. 2021
Platform
  1. Windows
I have the branch names in Col A and the criteria in U6

I want to sum the values in Col Q & R, based on the branch names in Col A pertaining to the branch name in U6

Code:
=SUMIFS(Q:Q,A:A,U6)+SUMIFS(R:R,A:A,U6)



the above formula gives me the correct result, but I would like to make combine the two formula's into one formula



Your assistance is most appreciated
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Maybe this:

PHP:
=SUMIFS(Q:R,A:A,U6)


Nevermind that doesn't work. Sorry :( . Still tinkering...stand by :)
 
Last edited:
Upvote 0
Ok, this works and I guess it's technically one formula....but really so was your original :)

PHP:
=SUM(SUMIFS(Q:Q,A:A,U6),SUMIFS(R:R,A:A,U6))
 
Upvote 0
How about =SUMPRODUCT(--(A:A=U6)*(Q:Q+R:R))

Although the OP is superior. It clearly shows what it is doing and is easy to edit in the future.
 
Upvote 0
Thanks mikerickson for your formula. It unfortunately returns #Value !

the =sum(Sumifs.... formula provided by jproffer, works perfectly. Not sure why the sumproduct formula does not work
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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