Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default Formula for multiple cells if they say a certain thing

I am looking for a formula where one cell will equal the total of mutiple
cells IF the cells say a different thing.

Example:

Column A has the Description "PUR" or "SK"
Column B has the Description "HY" or "CBN"
Column C has the total of that row (manually entered)

I want the total amount from col C to be all of the "PUR" or "SK" of "HY" or
"CBN"

So it would be IF cell A has PUR and cell B has HY then the amount in column
C for those will be totaled here. And so on as there could be 4 different
ways since it could be "PUR" of "HY", "PUR" of "CBN" or "SK" of "HY", "SK" of
"CBN".

Does this make any sense? It is hard to explain.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Formula for multiple cells if they say a certain thing

I'm not sure from your description what it is your are totaling up...
Numbers from another column when Column A and Column B are one of your
indicated combinations? Or the number of times a certain combination
appears? Is there a way you indicate which combination you want to do your
total for?

--
Rick (MVP - Excel)


"texansgal" wrote in message
...
I am looking for a formula where one cell will equal the total of mutiple
cells IF the cells say a different thing.

Example:

Column A has the Description "PUR" or "SK"
Column B has the Description "HY" or "CBN"
Column C has the total of that row (manually entered)

I want the total amount from col C to be all of the "PUR" or "SK" of "HY"
or
"CBN"

So it would be IF cell A has PUR and cell B has HY then the amount in
column
C for those will be totaled here. And so on as there could be 4 different
ways since it could be "PUR" of "HY", "PUR" of "CBN" or "SK" of "HY", "SK"
of
"CBN".

Does this make any sense? It is hard to explain.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default Formula for multiple cells if they say a certain thing

I knew I was confusing in what I was saying...lol

I have 3 columns that I want to base the total on. The amount in column C is
for the total of the Order (which is manually entered).

I have a total for items broken down at the bottom of the page. We want to
see what is selling better and if we are purchasing it elsewhere or if we
have this in stock.

I want anything that is SK and HY to be totaled in one cell for SK HY
I want anything that is SK and CBN to be totaled in one cell for SK CBN
I want anything that is PUR and HY to be totaled in one cell for PUR HY
I want anything that is PUR and CBN to be totaled in one cell for PUR CBN

I would like to have one general formula for each of the totals in the
bottom. I know there is something where I can have "if" it is "sk" in column
A and "hy" in column B, the total in column C will equal this amount.

Am I confusing you more?




"Rick Rothstein" wrote:

I'm not sure from your description what it is your are totaling up...
Numbers from another column when Column A and Column B are one of your
indicated combinations? Or the number of times a certain combination
appears? Is there a way you indicate which combination you want to do your
total for?

--
Rick (MVP - Excel)


"texansgal" wrote in message
...
I am looking for a formula where one cell will equal the total of mutiple
cells IF the cells say a different thing.

Example:

Column A has the Description "PUR" or "SK"
Column B has the Description "HY" or "CBN"
Column C has the total of that row (manually entered)

I want the total amount from col C to be all of the "PUR" or "SK" of "HY"
or
"CBN"

So it would be IF cell A has PUR and cell B has HY then the amount in
column
C for those will be totaled here. And so on as there could be 4 different
ways since it could be "PUR" of "HY", "PUR" of "CBN" or "SK" of "HY", "SK"
of
"CBN".

Does this make any sense? It is hard to explain.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Formula for multiple cells if they say a certain thing

=SUMPRODUCT(--(A2:A20="SK"),--(B2:B20="HY"))

etc.

--
__________________________________
HTH

Bob

"texansgal" wrote in message
...
I knew I was confusing in what I was saying...lol

I have 3 columns that I want to base the total on. The amount in column C
is
for the total of the Order (which is manually entered).

I have a total for items broken down at the bottom of the page. We want to
see what is selling better and if we are purchasing it elsewhere or if we
have this in stock.

I want anything that is SK and HY to be totaled in one cell for SK HY
I want anything that is SK and CBN to be totaled in one cell for SK CBN
I want anything that is PUR and HY to be totaled in one cell for PUR HY
I want anything that is PUR and CBN to be totaled in one cell for PUR CBN

I would like to have one general formula for each of the totals in the
bottom. I know there is something where I can have "if" it is "sk" in
column
A and "hy" in column B, the total in column C will equal this amount.

Am I confusing you more?




"Rick Rothstein" wrote:

I'm not sure from your description what it is your are totaling up...
Numbers from another column when Column A and Column B are one of your
indicated combinations? Or the number of times a certain combination
appears? Is there a way you indicate which combination you want to do
your
total for?

--
Rick (MVP - Excel)


"texansgal" wrote in message
...
I am looking for a formula where one cell will equal the total of
mutiple
cells IF the cells say a different thing.

Example:

Column A has the Description "PUR" or "SK"
Column B has the Description "HY" or "CBN"
Column C has the total of that row (manually entered)

I want the total amount from col C to be all of the "PUR" or "SK" of
"HY"
or
"CBN"

So it would be IF cell A has PUR and cell B has HY then the amount in
column
C for those will be totaled here. And so on as there could be 4
different
ways since it could be "PUR" of "HY", "PUR" of "CBN" or "SK" of "HY",
"SK"
of
"CBN".

Does this make any sense? It is hard to explain.





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,805
Default Formula for multiple cells if they say a certain thing

=SUMPRODUCT(--(A1:A100="PUR"),--(B1:B100="HY"),(C1:C100))
(after changing 100 to your last row) will give you the Sum of Col C where
corresponding row in Col A has PUR and Col B has HY

By changing PUR to HY and/or SK to CBN you will get all four combinations..

"texansgal" wrote:

I am looking for a formula where one cell will equal the total of mutiple
cells IF the cells say a different thing.

Example:

Column A has the Description "PUR" or "SK"
Column B has the Description "HY" or "CBN"
Column C has the total of that row (manually entered)

I want the total amount from col C to be all of the "PUR" or "SK" of "HY" or
"CBN"

So it would be IF cell A has PUR and cell B has HY then the amount in column
C for those will be totaled here. And so on as there could be 4 different
ways since it could be "PUR" of "HY", "PUR" of "CBN" or "SK" of "HY", "SK" of
"CBN".

Does this make any sense? It is hard to explain.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Formula for multiple cells if they say a certain thing


=SUMPRODUCT(SIGN((A2:A20={"PUR","SK"})+(B2:B20={"H Y","CBN"})))

--
__________________________________
HTH

Bob

"texansgal" wrote in message
...
I am looking for a formula where one cell will equal the total of mutiple
cells IF the cells say a different thing.

Example:

Column A has the Description "PUR" or "SK"
Column B has the Description "HY" or "CBN"
Column C has the total of that row (manually entered)

I want the total amount from col C to be all of the "PUR" or "SK" of "HY"
or
"CBN"

So it would be IF cell A has PUR and cell B has HY then the amount in
column
C for those will be totaled here. And so on as there could be 4 different
ways since it could be "PUR" of "HY", "PUR" of "CBN" or "SK" of "HY", "SK"
of
"CBN".

Does this make any sense? It is hard to explain.



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
multiple formual'a that equal the same thing machinist 101[_2_] Excel Worksheet Functions 2 March 5th 09 03:28 AM
do the same thing to multiple hard coded cells Sam Excel Worksheet Functions 3 March 7th 08 11:07 PM
Changing the Same thing on multiple charts mea Charts and Charting in Excel 1 April 24th 07 12:54 PM
get pivot data formula - is it the thing to do Todd F. Excel Worksheet Functions 0 August 10th 05 08:01 PM
The $ thing to lock cells at rows or columns [email protected] Excel Discussion (Misc queries) 2 December 27th 04 11:57 AM


All times are GMT +1. The time now is 12:18 AM.

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

About Us

"It's about Microsoft Excel"