Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Product of 3 Cells based on criteria

I have 6 columns of data as such:

A B C D E F
150 0 0 P .55 250
0 325 0 C 1.60 50
0 0 35 F .77 100

In the G column,I need to get the product of columns A,E,F if D = P and the
product of B,E,F if D = C and the product of C,E,F if D = F. Is this
possible? Any help is always appreciated. Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,393
Default Product of 3 Cells based on criteria

Could be done with nested IFs but this works
=(A1*(D1="P")+B1*(D1="C")+C1*(D1="F"))*E1*F1
You want E*F*(A if..., or B if ..., or C if...)

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"aileen" wrote in message
...
I have 6 columns of data as such:

A B C D E F
150 0 0 P .55 250
0 325 0 C 1.60 50
0 0 35 F .77 100

In the G column,I need to get the product of columns A,E,F if D = P and
the
product of B,E,F if D = C and the product of C,E,F if D = F. Is this
possible? Any help is always appreciated. Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Product of 3 Cells based on criteria

Works perfectly. Thanks much!

"Bernard Liengme" wrote:

Could be done with nested IFs but this works
=(A1*(D1="P")+B1*(D1="C")+C1*(D1="F"))*E1*F1
You want E*F*(A if..., or B if ..., or C if...)

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"aileen" wrote in message
...
I have 6 columns of data as such:

A B C D E F
150 0 0 P .55 250
0 325 0 C 1.60 50
0 0 35 F .77 100

In the G column,I need to get the product of columns A,E,F if D = P and
the
product of B,E,F if D = C and the product of C,E,F if D = F. Is this
possible? Any help is always appreciated. 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
Formula for product based on criteria? Klee Excel Worksheet Functions 4 August 28th 07 03:28 AM
Sum cells based on two criteria Ann Excel Programming 5 February 21st 07 02:52 AM
Product of 2 arrays based on criteria Ben010 Excel Discussion (Misc queries) 4 March 20th 06 07:50 PM
Fill cells with color based on criteria in two cells AA Excel Worksheet Functions 2 January 2nd 06 11:29 PM
SUM cells together based on 2 criteria Ivano Excel Worksheet Functions 3 September 19th 05 12:58 AM


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