Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula for product based on criteria? | Excel Worksheet Functions | |||
Sum cells based on two criteria | Excel Programming | |||
Product of 2 arrays based on criteria | Excel Discussion (Misc queries) | |||
Fill cells with color based on criteria in two cells | Excel Worksheet Functions | |||
SUM cells together based on 2 criteria | Excel Worksheet Functions |