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 IF, AND for different Columns

I have a worksheet for a meeting that I am trying to get to where I can use
the formula's and it will calculate as soon as the data is pasted from
another report.

I need the following:

Column E will have the following options:
BUY
STK
BUY/STK
STK/BUY
FRT


Column F will have the following options:
CAWPHY
CAWPB
CFWPHY
CFWPB
FRT
(plus way more to list)

The total of each Row is listed in Column J

So, if Column E has "BUY" and Column F has "CAWPHY", I want the sum which is
in Column J to be in cell E39. If Column E has "STK" and Column F has
"CAWPHY", I want the sum which is in Column J to be in cell E40...and so on.

There might 10 rows with the same in Column's E and F with the total of that
line in J that I need listed in the totals section at the bottom.

Can someone PLEASE HELP ME?

Thank you,
Vanessa





  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default IF, AND for different Columns

First, you don't want IF or AND.

Second, the function you want is SUMPRODUCT.

However, by far you most effective and simplest solution is a Pivot Table.
Read all about them he
http://www.cpearson.com/excel/pivots.htm

Regards,
Fred

"texansgal" wrote in message
...
I have a worksheet for a meeting that I am trying to get to where I can use
the formula's and it will calculate as soon as the data is pasted from
another report.

I need the following:

Column E will have the following options:
BUY
STK
BUY/STK
STK/BUY
FRT


Column F will have the following options:
CAWPHY
CAWPB
CFWPHY
CFWPB
FRT
(plus way more to list)

The total of each Row is listed in Column J

So, if Column E has "BUY" and Column F has "CAWPHY", I want the sum which
is
in Column J to be in cell E39. If Column E has "STK" and Column F has
"CAWPHY", I want the sum which is in Column J to be in cell E40...and so
on.

There might 10 rows with the same in Column's E and F with the total of
that
line in J that I need listed in the totals section at the bottom.

Can someone PLEASE HELP ME?

Thank you,
Vanessa






  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default IF, AND for different Columns

My boss doesnt want a pivot table.

Can anyone tell me how this can work?

I need the sum of J3:J29 to be split into different amounts in different
cells going by what E3:E29 and F3:F29 say...


E3=BUY
F3=CAWPHY
J3=2,000.00

D39 named BUY-WPHY needs total of ALL items in Column E=BUY AND F=CAWPHY or
CFWPHY

D40 names STK-WPHY needs total of ALL items in Column E=STK AND F=CAWPHY or
CFWPHY

Does this make better sense?




"Fred Smith" wrote:

First, you don't want IF or AND.

Second, the function you want is SUMPRODUCT.

However, by far you most effective and simplest solution is a Pivot Table.
Read all about them he
http://www.cpearson.com/excel/pivots.htm

Regards,
Fred

"texansgal" wrote in message
...
I have a worksheet for a meeting that I am trying to get to where I can use
the formula's and it will calculate as soon as the data is pasted from
another report.

I need the following:

Column E will have the following options:
BUY
STK
BUY/STK
STK/BUY
FRT


Column F will have the following options:
CAWPHY
CAWPB
CFWPHY
CFWPB
FRT
(plus way more to list)

The total of each Row is listed in Column J

So, if Column E has "BUY" and Column F has "CAWPHY", I want the sum which
is
in Column J to be in cell E39. If Column E has "STK" and Column F has
"CAWPHY", I want the sum which is in Column J to be in cell E40...and so
on.

There might 10 rows with the same in Column's E and F with the total of
that
line in J that I need listed in the totals section at the bottom.

Can someone PLEASE HELP ME?

Thank you,
Vanessa






.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default IF, AND for different Columns

Why doesn't your boss want a pivot table?

If you want to do it by SUMPRODUCT, try
=SUMPRODUCT(J3:J29,--(E3:E29="BUY"),(F3:F29="CAWPHY")+(F3:F29="CFWPHY") )
=SUMPRODUCT(J3:J29,--(E3:E29="STK"),(F3:F29="CAWPHY")+(F3:F29="CFWPHY") )
--
David Biddulph


"texansgal" wrote in message
...
My boss doesnt want a pivot table.

Can anyone tell me how this can work?

I need the sum of J3:J29 to be split into different amounts in different
cells going by what E3:E29 and F3:F29 say...


E3=BUY
F3=CAWPHY
J3=2,000.00

D39 named BUY-WPHY needs total of ALL items in Column E=BUY AND F=CAWPHY
or
CFWPHY

D40 names STK-WPHY needs total of ALL items in Column E=STK AND F=CAWPHY
or
CFWPHY

Does this make better sense?




"Fred Smith" wrote:

First, you don't want IF or AND.

Second, the function you want is SUMPRODUCT.

However, by far you most effective and simplest solution is a Pivot
Table.
Read all about them he
http://www.cpearson.com/excel/pivots.htm

Regards,
Fred

"texansgal" wrote in message
...
I have a worksheet for a meeting that I am trying to get to where I can
use
the formula's and it will calculate as soon as the data is pasted from
another report.

I need the following:

Column E will have the following options:
BUY
STK
BUY/STK
STK/BUY
FRT


Column F will have the following options:
CAWPHY
CAWPB
CFWPHY
CFWPB
FRT
(plus way more to list)

The total of each Row is listed in Column J

So, if Column E has "BUY" and Column F has "CAWPHY", I want the sum
which
is
in Column J to be in cell E39. If Column E has "STK" and Column F has
"CAWPHY", I want the sum which is in Column J to be in cell E40...and
so
on.

There might 10 rows with the same in Column's E and F with the total of
that
line in J that I need listed in the totals section at the bottom.

Can someone PLEASE HELP ME?

Thank you,
Vanessa






.


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
Make Columns A&B on Sheet2 always equal Sheet1 table columns A&B KnightBall Excel Worksheet Functions 6 August 18th 09 05:48 PM
putting 2 long columns into multiple columns in excel page and sor bob_mhc Excel Discussion (Misc queries) 1 April 25th 08 07:51 AM
to convert columns to rows having mulit independent group columns Quacy Excel Worksheet Functions 1 August 22nd 06 11:20 PM
Combine multiple columns into two long columns, Repeating rows in first column [email protected] Excel Discussion (Misc queries) 2 July 31st 06 09:45 PM
Combine multiple columns into two long columns, Repeating rows in first column [email protected] Excel Discussion (Misc queries) 0 July 31st 06 05:07 PM


All times are GMT +1. The time now is 05:17 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"