=SUMIF Help

Padawan

Active Member
Joined
Apr 9, 2002
Messages
395
Greetings Board.

XP Pro; Excel 2003

Here's what I'm trying to do.

if A1:A10 and left (B1:B10,2) = D1 & E1 then sum C1:C10

Here's my formula = SUMIF(A1:A10 & LEFT(B1:B10,2),D1&E1,C1:C10)

Can't get it to take, either as a formula or as an array.


I may need to use sumproduct. I would need help with sumproduct as I'm still learning to use sumproduct.

I would rather not add any more helper columns, but I know I can concatenate this data in the helper columns and then use a simple sumif formula with a single condition for the first argument.

Any thoughts?

THANK YOU.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
In a cautious set up and assuming that E1 must hold for the range B...

Code:
=SUMPRODUCT(
    --($A$1:$A$10&"#"&LEFT($B$1:$B$10,2)=D1&"#"&E1),
    $C$1:$C$10)

Greetings Board.

XP Pro; Excel 2003

Here's what I'm trying to do.

if A1:A10 and left (B1:B10,2) = D1 & E1 then sum C1:C10

Here's my formula = SUMIF(A1:A10 & LEFT(B1:B10,2),D1&E1,C1:C10)

Can't get it to take, either as a formula or as an array.


I may need to use sumproduct. I would need help with sumproduct as I'm still learning to use sumproduct.

I would rather not add any more helper columns, but I know I can concatenate this data in the helper columns and then use a simple sumif formula with a single condition for the first argument.

Any thoughts?

THANK YOU.
 
Upvote 0
Jonmo & Aladin

I think this not only works, but it may allow me to remove 2 helper rows already inserted.

So I figure I can use Genius for Jonmo and Brilliant for Aladin as Genious and Jonmo are shorter than Brilliant and Aladin Akyurek.

Does that work for you?

THANK YOU!!!

(former log-on of jxderg77)
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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