Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tim Tim is offline
external usenet poster
 
Posts: 408
Default sumif multiple criteria, some same cell

Here is what I am trying to do:
A B C
7000000 GL-2 $100
7126150 AR-PY $200
7135250 GL-2 $300
7137150 GL-2 $400
7139150 GL-2 $500
7145975 GL-2 $600
First...I need to check if numbers in A column are greater than 7000000 and
less than 7140999. Next identify only numbers that end in 150. Next check
column B and identify on the GL-2 cells...finally add the values in column C.
So the answer here should be $900. Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default sumif multiple criteria, some same cell

Hi,

Try this.

=SUMPRODUCT((A5:A107000000)*(A5:A10<7140999)*(1*R IGHT(A5:A10,3)=150)*(B5:B10="GL-2"),C5:C10)

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Tim" wrote in message
...
Here is what I am trying to do:
A B C
7000000 GL-2 $100
7126150 AR-PY $200
7135250 GL-2 $300
7137150 GL-2 $400
7139150 GL-2 $500
7145975 GL-2 $600
First...I need to check if numbers in A column are greater than 7000000
and
less than 7140999. Next identify only numbers that end in 150. Next check
column B and identify on the GL-2 cells...finally add the values in column
C.
So the answer here should be $900. Thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tim Tim is offline
external usenet poster
 
Posts: 408
Default sumif multiple criteria, some same cell

Hi Ashish,
It works great!
Thanks very much

"Ashish Mathur" wrote:

Hi,

Try this.

=SUMPRODUCT((A5:A107000000)*(A5:A10<7140999)*(1*R IGHT(A5:A10,3)=150)*(B5:B10="GL-2"),C5:C10)

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Tim" wrote in message
...
Here is what I am trying to do:
A B C
7000000 GL-2 $100
7126150 AR-PY $200
7135250 GL-2 $300
7137150 GL-2 $400
7139150 GL-2 $500
7145975 GL-2 $600
First...I need to check if numbers in A column are greater than 7000000
and
less than 7140999. Next identify only numbers that end in 150. Next check
column B and identify on the GL-2 cells...finally add the values in column
C.
So the answer here should be $900. Thanks


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tim Tim is offline
external usenet poster
 
Posts: 408
Default sumif multiple criteria, some same cell

Hi there,
I still need help....the number of lines I am evaluating may vary, so it may
be 400 lines on this sheet and 800 lines on another sheet. If I don't specify
the exact number of lines it gives me a #VALUE! error.
Any ideas? Thanks

"Ashish Mathur" wrote:

Hi,

Try this.

=SUMPRODUCT((A5:A107000000)*(A5:A10<7140999)*(1*R IGHT(A5:A10,3)=150)*(B5:B10="GL-2"),C5:C10)

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Tim" wrote in message
...
Here is what I am trying to do:
A B C
7000000 GL-2 $100
7126150 AR-PY $200
7135250 GL-2 $300
7137150 GL-2 $400
7139150 GL-2 $500
7145975 GL-2 $600
First...I need to check if numbers in A column are greater than 7000000
and
less than 7140999. Next identify only numbers that end in 150. Next check
column B and identify on the GL-2 cells...finally add the values in column
C.
So the answer here should be $900. Thanks


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tim Tim is offline
external usenet poster
 
Posts: 408
Default sumif multiple criteria, some same cell

Hi there,
I don't have header row in this data set...tried it anyhow and it did not
work. Maybe I am doing something wrong....I get a #VALUE! error.

"Ashish Mathur" wrote:

Hi,

You can convert the range to a List (Ctrl+L). This makes the range auto
expanding. Before pressing Ctrl+L, please select the entire range including
the header row.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Tim" wrote in message
...
Hi there,
I still need help....the number of lines I am evaluating may vary, so it
may
be 400 lines on this sheet and 800 lines on another sheet. If I don't
specify
the exact number of lines it gives me a #VALUE! error.
Any ideas? Thanks

"Ashish Mathur" wrote:

Hi,

Try this.

=SUMPRODUCT((A5:A107000000)*(A5:A10<7140999)*(1*R IGHT(A5:A10,3)=150)*(B5:B10="GL-2"),C5:C10)

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Tim" wrote in message
...
Here is what I am trying to do:
A B C
7000000 GL-2 $100
7126150 AR-PY $200
7135250 GL-2 $300
7137150 GL-2 $400
7139150 GL-2 $500
7145975 GL-2 $600
First...I need to check if numbers in A column are greater than 7000000
and
less than 7140999. Next identify only numbers that end in 150. Next
check
column B and identify on the GL-2 cells...finally add the values in
column
C.
So the answer here should be $900. Thanks



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default sumif multiple criteria, some same cell

If there are blank rows, you will get an error. I understood your question
as "how do I auto expand the range in the sumproduct when data gets added to
an existing range"

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Tim" wrote in message
...
Hi there,
I don't have header row in this data set...tried it anyhow and it did not
work. Maybe I am doing something wrong....I get a #VALUE! error.

"Ashish Mathur" wrote:

Hi,

You can convert the range to a List (Ctrl+L). This makes the range auto
expanding. Before pressing Ctrl+L, please select the entire range
including
the header row.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Tim" wrote in message
...
Hi there,
I still need help....the number of lines I am evaluating may vary, so
it
may
be 400 lines on this sheet and 800 lines on another sheet. If I don't
specify
the exact number of lines it gives me a #VALUE! error.
Any ideas? Thanks

"Ashish Mathur" wrote:

Hi,

Try this.

=SUMPRODUCT((A5:A107000000)*(A5:A10<7140999)*(1*R IGHT(A5:A10,3)=150)*(B5:B10="GL-2"),C5:C10)

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Tim" wrote in message
...
Here is what I am trying to do:
A B C
7000000 GL-2 $100
7126150 AR-PY $200
7135250 GL-2 $300
7137150 GL-2 $400
7139150 GL-2 $500
7145975 GL-2 $600
First...I need to check if numbers in A column are greater than
7000000
and
less than 7140999. Next identify only numbers that end in 150. Next
check
column B and identify on the GL-2 cells...finally add the values in
column
C.
So the answer here should be $900. Thanks

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tim Tim is offline
external usenet poster
 
Posts: 408
Default sumif multiple criteria, some same cell

Any way around the blank rows....The formula you gave me works exactly how I
want it except for the blank rows. Thanks again.

"Ashish Mathur" wrote:

If there are blank rows, you will get an error. I understood your question
as "how do I auto expand the range in the sumproduct when data gets added to
an existing range"

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Tim" wrote in message
...
Hi there,
I don't have header row in this data set...tried it anyhow and it did not
work. Maybe I am doing something wrong....I get a #VALUE! error.

"Ashish Mathur" wrote:

Hi,

You can convert the range to a List (Ctrl+L). This makes the range auto
expanding. Before pressing Ctrl+L, please select the entire range
including
the header row.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Tim" wrote in message
...
Hi there,
I still need help....the number of lines I am evaluating may vary, so
it
may
be 400 lines on this sheet and 800 lines on another sheet. If I don't
specify
the exact number of lines it gives me a #VALUE! error.
Any ideas? Thanks

"Ashish Mathur" wrote:

Hi,

Try this.

=SUMPRODUCT((A5:A107000000)*(A5:A10<7140999)*(1*R IGHT(A5:A10,3)=150)*(B5:B10="GL-2"),C5:C10)

Hope this helps.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Tim" wrote in message
...
Here is what I am trying to do:
A B C
7000000 GL-2 $100
7126150 AR-PY $200
7135250 GL-2 $300
7137150 GL-2 $400
7139150 GL-2 $500
7145975 GL-2 $600
First...I need to check if numbers in A column are greater than
7000000
and
less than 7140999. Next identify only numbers that end in 150. Next
check
column B and identify on the GL-2 cells...finally add the values in
column
C.
So the answer here should be $900. Thanks


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SUMIF multiple criteria Tasha Excel Discussion (Misc queries) 9 September 25th 08 06:25 PM
SUMPRODUCT / SUMIF on Multiple Worksheets with Multiple Criteria kazoo Excel Discussion (Misc queries) 2 August 21st 08 06:22 PM
Multiple Criteria for SUMIF Duncan Excel Worksheet Functions 5 May 22nd 08 11:41 PM
Sumif with Multiple Criteria No Idea Excel Worksheet Functions 3 May 15th 08 06:27 PM
Sumif with multiple criteria jn77 Excel Worksheet Functions 5 July 19th 06 09:52 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"