ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Sumifs & Not Like (https://www.excelbanter.com/excel-discussion-misc-queries/224243-sumifs-not-like.html)

Cow Girl

Sumifs & Not Like
 
I have a large spreadsheet that looks something like this:


Dest. Origin Weight Carrier
NYC PIT 37,133 FedEx
LA OBX 5,280 DHL
NYC OBX 35,800 FedEx
CHI OBX 28,100 UPS
NYC PIT 39,680 DHL
TOR OBX 54,648 BAX



I need to summarize this various ways. One of them is I need the total
weight from origin OBX, but not using the carrier UPS. So, my answer should
be 95,728.


The problem is there are way more carriers than just the 3 that I show, and
I only need to exclude 1 carrier.

So, how Can I use write a formula that says sum if the origin is "OBX" and
the carrier NOT "UPS"? I use the sumifs formula (I'm using Excel 2007) all
the time. But, this is the first time I need to exclude something.

Any ideas? All and all help is greatly appreciated!!!

Mike H

Sumifs & Not Like
 
Hi,

You could try this

=SUMPRODUCT((B2:B20="OBX")*(D2:D20<"UPS")*(C2:C20 ))

Mike

"Cow Girl" wrote:

I have a large spreadsheet that looks something like this:


Dest. Origin Weight Carrier
NYC PIT 37,133 FedEx
LA OBX 5,280 DHL
NYC OBX 35,800 FedEx
CHI OBX 28,100 UPS
NYC PIT 39,680 DHL
TOR OBX 54,648 BAX



I need to summarize this various ways. One of them is I need the total
weight from origin OBX, but not using the carrier UPS. So, my answer should
be 95,728.


The problem is there are way more carriers than just the 3 that I show, and
I only need to exclude 1 carrier.

So, how Can I use write a formula that says sum if the origin is "OBX" and
the carrier NOT "UPS"? I use the sumifs formula (I'm using Excel 2007) all
the time. But, this is the first time I need to exclude something.

Any ideas? All and all help is greatly appreciated!!!


Cow Girl

Sumifs & Not Like
 
Thank you!! That worked perfectly. One more question, please? Is there a way
to count vs. summing?

"Mike H" wrote:

Hi,

You could try this

=SUMPRODUCT((B2:B20="OBX")*(D2:D20<"UPS")*(C2:C20 ))

Mike

"Cow Girl" wrote:

I have a large spreadsheet that looks something like this:


Dest. Origin Weight Carrier
NYC PIT 37,133 FedEx
LA OBX 5,280 DHL
NYC OBX 35,800 FedEx
CHI OBX 28,100 UPS
NYC PIT 39,680 DHL
TOR OBX 54,648 BAX



I need to summarize this various ways. One of them is I need the total
weight from origin OBX, but not using the carrier UPS. So, my answer should
be 95,728.


The problem is there are way more carriers than just the 3 that I show, and
I only need to exclude 1 carrier.

So, how Can I use write a formula that says sum if the origin is "OBX" and
the carrier NOT "UPS"? I use the sumifs formula (I'm using Excel 2007) all
the time. But, this is the first time I need to exclude something.

Any ideas? All and all help is greatly appreciated!!!


Mike H

Sumifs & Not Like
 
I assume you mean count the number of entries summed by the previous formula

=SUMPRODUCT((B2:B20="OBX")*(D2:D20<"UPS")*(C2:C20 <""))

Mike

"Cow Girl" wrote:

Thank you!! That worked perfectly. One more question, please? Is there a way
to count vs. summing?

"Mike H" wrote:

Hi,

You could try this

=SUMPRODUCT((B2:B20="OBX")*(D2:D20<"UPS")*(C2:C20 ))

Mike

"Cow Girl" wrote:

I have a large spreadsheet that looks something like this:


Dest. Origin Weight Carrier
NYC PIT 37,133 FedEx
LA OBX 5,280 DHL
NYC OBX 35,800 FedEx
CHI OBX 28,100 UPS
NYC PIT 39,680 DHL
TOR OBX 54,648 BAX



I need to summarize this various ways. One of them is I need the total
weight from origin OBX, but not using the carrier UPS. So, my answer should
be 95,728.


The problem is there are way more carriers than just the 3 that I show, and
I only need to exclude 1 carrier.

So, how Can I use write a formula that says sum if the origin is "OBX" and
the carrier NOT "UPS"? I use the sumifs formula (I'm using Excel 2007) all
the time. But, this is the first time I need to exclude something.

Any ideas? All and all help is greatly appreciated!!!


Cow Girl

Sumifs & Not Like
 
Yes, that is what I mean. I'm looking for an answer of 3. When I do that,
though, it comes up as an error: #N/A

Any ideas what I might be doing wrong?

"Mike H" wrote:

I assume you mean count the number of entries summed by the previous formula

=SUMPRODUCT((B2:B20="OBX")*(D2:D20<"UPS")*(C2:C20 <""))

Mike

"Cow Girl" wrote:

Thank you!! That worked perfectly. One more question, please? Is there a way
to count vs. summing?

"Mike H" wrote:

Hi,

You could try this

=SUMPRODUCT((B2:B20="OBX")*(D2:D20<"UPS")*(C2:C20 ))

Mike

"Cow Girl" wrote:

I have a large spreadsheet that looks something like this:


Dest. Origin Weight Carrier
NYC PIT 37,133 FedEx
LA OBX 5,280 DHL
NYC OBX 35,800 FedEx
CHI OBX 28,100 UPS
NYC PIT 39,680 DHL
TOR OBX 54,648 BAX



I need to summarize this various ways. One of them is I need the total
weight from origin OBX, but not using the carrier UPS. So, my answer should
be 95,728.


The problem is there are way more carriers than just the 3 that I show, and
I only need to exclude 1 carrier.

So, how Can I use write a formula that says sum if the origin is "OBX" and
the carrier NOT "UPS"? I use the sumifs formula (I'm using Excel 2007) all
the time. But, this is the first time I need to exclude something.

Any ideas? All and all help is greatly appreciated!!!


Cow Girl

Sumifs & Not Like
 

Mike, I figured it out. I did not specify the exact range for the carriers.
That is, I did D:D instead of D2:D20. It doesn't work if you do that. Thank
you so much for all of your help!! Cathy


"Mike H" wrote:

I assume you mean count the number of entries summed by the previous formula

=SUMPRODUCT((B2:B20="OBX")*(D2:D20<"UPS")*(C2:C20 <""))

Mike

"Cow Girl" wrote:

Thank you!! That worked perfectly. One more question, please? Is there a way
to count vs. summing?

"Mike H" wrote:

Hi,

You could try this

=SUMPRODUCT((B2:B20="OBX")*(D2:D20<"UPS")*(C2:C20 ))

Mike

"Cow Girl" wrote:

I have a large spreadsheet that looks something like this:


Dest. Origin Weight Carrier
NYC PIT 37,133 FedEx
LA OBX 5,280 DHL
NYC OBX 35,800 FedEx
CHI OBX 28,100 UPS
NYC PIT 39,680 DHL
TOR OBX 54,648 BAX



I need to summarize this various ways. One of them is I need the total
weight from origin OBX, but not using the carrier UPS. So, my answer should
be 95,728.


The problem is there are way more carriers than just the 3 that I show, and
I only need to exclude 1 carrier.

So, how Can I use write a formula that says sum if the origin is "OBX" and
the carrier NOT "UPS"? I use the sumifs formula (I'm using Excel 2007) all
the time. But, this is the first time I need to exclude something.

Any ideas? All and all help is greatly appreciated!!!


Mike H

Sumifs & Not Like
 
Glad I could help and on the voyage of self discovery you just found out that
sumproduct doesn't work on full columns in your version of Excel. I bet you
never forget that.

Mike

"Cow Girl" wrote:


Mike, I figured it out. I did not specify the exact range for the carriers.
That is, I did D:D instead of D2:D20. It doesn't work if you do that. Thank
you so much for all of your help!! Cathy


"Mike H" wrote:

I assume you mean count the number of entries summed by the previous formula

=SUMPRODUCT((B2:B20="OBX")*(D2:D20<"UPS")*(C2:C20 <""))

Mike

"Cow Girl" wrote:

Thank you!! That worked perfectly. One more question, please? Is there a way
to count vs. summing?

"Mike H" wrote:

Hi,

You could try this

=SUMPRODUCT((B2:B20="OBX")*(D2:D20<"UPS")*(C2:C20 ))

Mike

"Cow Girl" wrote:

I have a large spreadsheet that looks something like this:


Dest. Origin Weight Carrier
NYC PIT 37,133 FedEx
LA OBX 5,280 DHL
NYC OBX 35,800 FedEx
CHI OBX 28,100 UPS
NYC PIT 39,680 DHL
TOR OBX 54,648 BAX



I need to summarize this various ways. One of them is I need the total
weight from origin OBX, but not using the carrier UPS. So, my answer should
be 95,728.


The problem is there are way more carriers than just the 3 that I show, and
I only need to exclude 1 carrier.

So, how Can I use write a formula that says sum if the origin is "OBX" and
the carrier NOT "UPS"? I use the sumifs formula (I'm using Excel 2007) all
the time. But, this is the first time I need to exclude something.

Any ideas? All and all help is greatly appreciated!!!



All times are GMT +1. The time now is 01:52 PM.

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