ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   multiple text criteria sum if function (https://www.excelbanter.com/excel-worksheet-functions/102008-multiple-text-criteria-sum-if-function.html)

datasorter

multiple text criteria sum if function
 
can anyone tell me whats wrong with this formula and how to fix it?

=sumif(and('[Upsell Monthly Report.xls]COB'!$A:$A,'[Upsell Monthly
Report.xls]COB'!$C:$C),(A8,B8),('[Upsell Monthly Report.xls]COB'!$I:$I)

Barb Reinhardt

multiple text criteria sum if function
 
What do you want to do with this? Is is possibly a SUMPRODUCT formula?
Since I'm having some SUMPRODUCT difficulties today, I'll leave this to
someone else.

"datasorter" wrote:

can anyone tell me whats wrong with this formula and how to fix it?

=sumif(and('[Upsell Monthly Report.xls]COB'!$A:$A,'[Upsell Monthly
Report.xls]COB'!$C:$C),(A8,B8),('[Upsell Monthly Report.xls]COB'!$I:$I)


VBA Noob

multiple text criteria sum if function
 

Thinks it's your criteria A8,B8 as it's not a range and A8 is in Column
A which is a circular ref.

VBA Noob


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=566150


RagDyeR

multiple text criteria sum if function
 
Put into words what you're trying to do.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"datasorter" wrote in message
...
can anyone tell me whats wrong with this formula and how to fix it?

=sumif(and('[Upsell Monthly Report.xls]COB'!$A:$A,'[Upsell Monthly
Report.xls]COB'!$C:$C),(A8,B8),('[Upsell Monthly Report.xls]COB'!$I:$I)



Peo Sjoblom

multiple text criteria sum if function
 
1. SUMIF does not work if the file is closed (same goes for COUNTIF)

2. Your criteria is a bit unclear, do you mean either A8 or B8

3. You can use SUMPRODUCT but you cannot use the whole column like A:A, you
need a specified range,
here are 2 formulas that should work, I was too lazy to use your path but
the formulas work with closed workbooks



=SUMPRODUCT(--((COB!A2:A5000=A8)+(COB!A2:A5000=B8)0),COB!I2:I50 00)

or

=SUMPRODUCT((COB!A2:A5000=A8:B8)*(COB!I2:I5000))

the former is more stable since it won't choke if there is an occasional
text value in the range



--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com




I will leave out the path and workbook name, you can add that yourself but
"datasorter" wrote in message
...
can anyone tell me whats wrong with this formula and how to fix it?

=sumif(and('[Upsell Monthly Report.xls]COB'!$A:$A,'[Upsell Monthly
Report.xls]COB'!$C:$C),(A8,B8),('[Upsell Monthly Report.xls]COB'!$I:$I)




Toppers

multiple text criteria sum if function
 
Try:

=SUMPRODUCT(--('[Upsell Monthly Report.xls]COB'!$A1:$A1000=A8),--('[Upsell
Monthly Report.xls]COB'!$C1:$C1000=B8)*('[Upsell Monthly
Report.xls]COB'!$I1:$I000))

SUMPRODUCT must have defined arrays i.e. cannot use whole columns, so adjust
to you needs. All ranges must be same size.

HTH

"datasorter" wrote:

can anyone tell me whats wrong with this formula and how to fix it?

=sumif(and('[Upsell Monthly Report.xls]COB'!$A:$A,'[Upsell Monthly
Report.xls]COB'!$C:$C),(A8,B8),('[Upsell Monthly Report.xls]COB'!$I:$I)


datasorter

multiple text criteria sum if function
 
Hi,

Im trying to use this function to grab a cell in a different workbook.

=sumif(and('[Upsell Monthly Report.xls]COB'!$A:$A,'[Upsell Monthly
Report.xls]COB'!$C:$C),(A8,B8),('[Upsell Monthly Report.xls]COB'!$I:$I)

I added in the 'and' because I thought it would enable me to have two
ranges. (Column A and Column C). The A8 and B8 are the criteria that I need
to match within Column A and C in the other workbook.

Finally, column I is the colmun on the other sheet that I am pulling the
number from.

I'm thinking of a possible alternative in place on the end instead of the
sum range in Column I.


Any help is much appreciated.


"Barb Reinhardt" wrote:

What do you want to do with this? Is is possibly a SUMPRODUCT formula?
Since I'm having some SUMPRODUCT difficulties today, I'll leave this to
someone else.

"datasorter" wrote:

can anyone tell me whats wrong with this formula and how to fix it?

=sumif(and('[Upsell Monthly Report.xls]COB'!$A:$A,'[Upsell Monthly
Report.xls]COB'!$C:$C),(A8,B8),('[Upsell Monthly Report.xls]COB'!$I:$I)


datasorter

multiple text criteria sum if function
 
I changed your '$I1:$I000' to '$I1:$I1000' and I got #REF!

"Toppers" wrote:

Try:

=SUMPRODUCT(--('[Upsell Monthly Report.xls]COB'!$A1:$A1000=A8),--('[Upsell
Monthly Report.xls]COB'!$C1:$C1000=B8)*('[Upsell Monthly
Report.xls]COB'!$I1:$I000))

SUMPRODUCT must have defined arrays i.e. cannot use whole columns, so adjust
to you needs. All ranges must be same size.

HTH

"datasorter" wrote:

can anyone tell me whats wrong with this formula and how to fix it?

=sumif(and('[Upsell Monthly Report.xls]COB'!$A:$A,'[Upsell Monthly
Report.xls]COB'!$C:$C),(A8,B8),('[Upsell Monthly Report.xls]COB'!$I:$I)


datasorter

multiple text criteria sum if function
 
I tried this and I got #N/A

=SUMPRODUCT(--(('[Upsell Monthly Report.xls]COB'!$A$19:$A$944=A8)+('[Upsell
Monthly Report.xls]COB'!$C$19:$C$891=C8)0),'[Upsell Monthly
Report.xls]COB'!$I$19:$I$1075)



Toppers

multiple text criteria sum if function
 
Check all references e.g Workbook names are correct. I tried using your
w/book name and worked fine.

"datasorter" wrote:

I changed your '$I1:$I000' to '$I1:$I1000' and I got #REF!

"Toppers" wrote:

Try:

=SUMPRODUCT(--('[Upsell Monthly Report.xls]COB'!$A1:$A1000=A8),--('[Upsell
Monthly Report.xls]COB'!$C1:$C1000=B8)*('[Upsell Monthly
Report.xls]COB'!$I1:$I000))

SUMPRODUCT must have defined arrays i.e. cannot use whole columns, so adjust
to you needs. All ranges must be same size.

HTH

"datasorter" wrote:

can anyone tell me whats wrong with this formula and how to fix it?

=sumif(and('[Upsell Monthly Report.xls]COB'!$A:$A,'[Upsell Monthly
Report.xls]COB'!$C:$C),(A8,B8),('[Upsell Monthly Report.xls]COB'!$I:$I)


RagDyeR

multiple text criteria sum if function
 
Your ranges are *not equal*!

They *must all* be exactly the same size.

A19:A944
C19:C891
I19:I1075

Pick whatever range best suits your data, and equalize them ... THEN ... try
again!

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"datasorter" wrote in message
...
I tried this and I got #N/A

=SUMPRODUCT(--(('[Upsell Monthly
Report.xls]COB'!$A$19:$A$944=A8)+('[Upsell
Monthly Report.xls]COB'!$C$19:$C$891=C8)0),'[Upsell Monthly
Report.xls]COB'!$I$19:$I$1075)




Peo Sjoblom

multiple text criteria sum if function
 
True but my formula was wrong since I didn't observe that the OP used the A,
the C and the I range, so it would be a regular sumproduct not the OR
version I cooked up so

=SUMPRODUCT(--('[Upsell Monthly
Report.xls]COB'!$A$19:$A$1075=A8),--('[Upsell
Monthly Report.xls]COB'!$C$19:$C$1075=C8),'[Upsell Monthly
Report.xls]COB'!$I$19:$I$1075)

might work


--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com




"Ragdyer" wrote in message
...
Your ranges are *not equal*!

They *must all* be exactly the same size.

A19:A944
C19:C891
I19:I1075

Pick whatever range best suits your data, and equalize them ... THEN ...
try again!

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"datasorter" wrote in message
...
I tried this and I got #N/A

=SUMPRODUCT(--(('[Upsell Monthly
Report.xls]COB'!$A$19:$A$944=A8)+('[Upsell
Monthly Report.xls]COB'!$C$19:$C$891=C8)0),'[Upsell Monthly
Report.xls]COB'!$I$19:$I$1075)






RagDyeR

multiple text criteria sum if function
 
It's *still* not clear (to me) exactly what criteria refers to what range.

The way the OP formula was constructed, anything is (was) possible.<g
--

Regards,

RD
----------------------------------------------------------------------------
-------------------
Please keep all correspondence within the Group, so all may benefit !
----------------------------------------------------------------------------
-------------------

"Peo Sjoblom" wrote in message
...
True but my formula was wrong since I didn't observe that the OP used the A,
the C and the I range, so it would be a regular sumproduct not the OR
version I cooked up so

=SUMPRODUCT(--('[Upsell Monthly
Report.xls]COB'!$A$19:$A$1075=A8),--('[Upsell
Monthly Report.xls]COB'!$C$19:$C$1075=C8),'[Upsell Monthly
Report.xls]COB'!$I$19:$I$1075)

might work


--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com




"Ragdyer" wrote in message
...
Your ranges are *not equal*!

They *must all* be exactly the same size.

A19:A944
C19:C891
I19:I1075

Pick whatever range best suits your data, and equalize them ... THEN ...
try again!

--
HTH,

RD

--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit !
--------------------------------------------------------------------------

-
"datasorter" wrote in message
...
I tried this and I got #N/A

=SUMPRODUCT(--(('[Upsell Monthly
Report.xls]COB'!$A$19:$A$944=A8)+('[Upsell
Monthly Report.xls]COB'!$C$19:$C$891=C8)0),'[Upsell Monthly
Report.xls]COB'!$I$19:$I$1075)







Peo Sjoblom

multiple text criteria sum if function
 
Bingo <bg

Peo


"RagDyeR" wrote in message
...
It's *still* not clear (to me) exactly what criteria refers to what range.

The way the OP formula was constructed, anything is (was) possible.<g
--

Regards,

RD
----------------------------------------------------------------------------
-------------------
Please keep all correspondence within the Group, so all may benefit !
----------------------------------------------------------------------------
-------------------

"Peo Sjoblom" wrote in message
...
True but my formula was wrong since I didn't observe that the OP used the
A,
the C and the I range, so it would be a regular sumproduct not the OR
version I cooked up so

=SUMPRODUCT(--('[Upsell Monthly
Report.xls]COB'!$A$19:$A$1075=A8),--('[Upsell
Monthly Report.xls]COB'!$C$19:$C$1075=C8),'[Upsell Monthly
Report.xls]COB'!$I$19:$I$1075)

might work


--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com




"Ragdyer" wrote in message
...
Your ranges are *not equal*!

They *must all* be exactly the same size.

A19:A944
C19:C891
I19:I1075

Pick whatever range best suits your data, and equalize them ... THEN ...
try again!

--
HTH,

RD

--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit !
--------------------------------------------------------------------------

-
"datasorter" wrote in message
...
I tried this and I got #N/A

=SUMPRODUCT(--(('[Upsell Monthly
Report.xls]COB'!$A$19:$A$944=A8)+('[Upsell
Monthly Report.xls]COB'!$C$19:$C$891=C8)0),'[Upsell Monthly
Report.xls]COB'!$I$19:$I$1075)










All times are GMT +1. The time now is 03:25 AM.

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