May 15 2019 02:14 PM
I am interested in how to (sumifs) between a range of equipment codes. For example, we have 4 columns with about 20,000 rows (of line items) being all individual pieces of equipment.
Column 1 - Invoice #
Column 2 - Equipment code (ranging)
Column 3 - Vendor (yes or no)
Column 4 - Price for each line item
My original formula would only account for individual equipment codes, for example, Code 10000 meaning lawnmower. Well, I am now put into the situation to sum if items are between a range of codes & here they are.
Any ideas? I would like to sum totals if the invoice # is matched, the vendor is (yes) and the equipment codes are within the range (100000 – 399999)
May 15 2019 02:21 PM
@CasonTheOnly , that's like
=SUMIFS(Price,Code, ">="&100000,Code,"<="&399999,Vendor,"Yes")
As variant PivotTable could be more suitable
May 16 2019 06:00 AM
@Sergei Baklan I may be structuring this wrong. I've attached a screenshot this time to give you an idea of what I'm working with (sorry for the 3mb file size....) Thanks for the response!
Cason
May 16 2019 06:08 AM
Hi Cason,
In the middle it shall be
...,E319:E353,">=400000",E319:E353,"<=499999",...
I guess you have no name "code" defined.
May 16 2019 07:51 AM
@Sergei Baklan The formula is now having issues summing the totals. It keeps calculating $0. Referring back to my screenshot (I've reattached for your convenience), I previously found the issue was coming from the list of invoices I am trying to match (AE321: AE350), almost as if it would not correctly match each individual invoice number. I was then forced to build another sheet that would sum the totals within each individual invoice (AE321), (AE322), etc. instead of being able to select all of them at once (AE321: AE350). However, even with your formula recommendation selecting on ONE invoice # (AE321), it still sums to 0.
Thanks!
May 16 2019 08:03 AM
Solution@CasonTheOnly , sorry, I missed you'd like to find sum for all invoices, not for concrete one. When warp your formula with SUMPRODUCT as
=SUMPRODUCT(SUMIFS(...))
Otherwise it takes first invoice from the list (203978) and you have no such in the range.
May 16 2019 08:52 AM
@Sergei Baklan That formula is exactly what I needed. It wasn't working at first because I didn't convert/format my equipment codes to Numbers.
THANK YOU!
May 16 2019 08:59 AM
@CasonTheOnly , you are welcome, glad to know you have one issue less
May 16 2019 08:03 AM
Solution@CasonTheOnly , sorry, I missed you'd like to find sum for all invoices, not for concrete one. When warp your formula with SUMPRODUCT as
=SUMPRODUCT(SUMIFS(...))
Otherwise it takes first invoice from the list (203978) and you have no such in the range.