sumif & sumifs

royalace

New Member
Joined
Nov 21, 2017
Messages
5
I have been able to work with these with some success. What I am having trouble with is getting the formula to use more than one column to choose the data from.
formula =sumifs(tkcol,tkno,dola,dolb,dolc) where tkcol is the truck range, tkno is the truck to match, and the last 3 will have dollar amounts depending on what column it falls in. keep getting an error. any help on this. Thanks.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Welcome to the Board!

Try this:
Code:
[COLOR=#333333]=sumif(tkcol,tkno,dola) + [/COLOR][COLOR=#333333]sumif(tkcol,tkno,dolb) + [/COLOR][COLOR=#333333]sumif(tkcol,tkno,dolc)[/COLOR]
 
Upvote 0
Hi royalace,

So you are summing trucks? just checking this is correct. can you give an example of what the formula would actually look like, dollars and all?

Cheers
JB
 
Upvote 0
Welcome to the Board!

Try this:
Code:
[COLOR=#333333]=sumif(tkcol,tkno,dola) + [/COLOR][COLOR=#333333]sumif(tkcol,tkno,dolb) + [/COLOR][COLOR=#333333]sumif(tkcol,tkno,dolc)[/COLOR]

Thank you Joe4, used this format and was able to get all the info that was needed.
 
Upvote 0
You are welcome!

Note that SUMIFS works on multiple conditions, and all conditions must be met to return something (works like "AND").
If you have a situation like you have or want an "OR" condition, you can do separate SUMIF calculations and add them up.
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,313
Members
452,634
Latest member
cpostell

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