ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How can I make this formula work? (https://www.excelbanter.com/excel-programming/440798-how-can-i-make-formula-work.html)

Friðrik Björgvinsson

How can I make this formula work?
 
=SUMIF(A2(LEFT(A2:A2966;9)):A2966;$K$1;I2:I2966)
or should it be
=SUMIF(LEFT(A2:A2966;9);$K$1;I2:I2966)
I'm using this formula for as you can see nearly 3000 rows, is there another
way of doing it?

Stefi

How can I make this formula work?
 
=SUMPRODUCT(--(LEFT(A2:A2966,9)=$K$1),I2:I29666)

--
Regards!
Stefi



Friðrik Björgvinsson ezt *rta:

=SUMIF(A2(LEFT(A2:A2966;9)):A2966;$K$1;I2:I2966)
or should it be
=SUMIF(LEFT(A2:A2966;9);$K$1;I2:I2966)
I'm using this formula for as you can see nearly 3000 rows, is there another
way of doing it?


Jacob Skaria

How can I make this formula work?
 
Try the below

=SUMIF(A2:A2966,$K$1 & "*",I2:I2966)

The above formula will sum the values in I2:I2966 if the first characters in
A2:A2966 are same as what is specified in cell K1. This works only for text
strings.

--
Jacob


"Friðrik Björgvinsson" wrote:

=SUMIF(A2(LEFT(A2:A2966;9)):A2966;$K$1;I2:I2966)
or should it be
=SUMIF(LEFT(A2:A2966;9);$K$1;I2:I2966)
I'm using this formula for as you can see nearly 3000 rows, is there another
way of doing it?



All times are GMT +1. The time now is 04:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com