Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
First off thanks for always giving great assistance.
My problem deals with returning one result from 1 cell if 3 other cells match the correct criteria. Example: If Cell F1="2-Color" and Cell L1="4" and Cell N1="1" then place Cell M1 value "2700" in Sheet2 Cell A1. Maybe I'm thinking to hard by trying to make it an Hlookup or Array, now that I look at it mabye some type of IF function will work???. |
#3
![]() |
|||
|
|||
![]()
I worded that example incorrectly, should have been:
Example: If Cell F1:F326="2-Color" and Cell L1:L326="4" and Cell N1:N326="1" then sum Cell M1:M326 that match the above criteria and place that value in Sheet2 Cell A1. I tried this in the first cell on sheet 2 and got a "false": =IF(AND(Counts!F3:F326="2-Color",AND(Counts!L3:L326="4",AND(Counts!N3:N326=" 1"))),SUM(Counts!M3:M326)) "Don Guillett" wrote: Have a look in HELP index for AND =if(and(1,2,3),1,2) -- Don Guillett SalesAid Software "Murph" wrote in message ... First off thanks for always giving great assistance. My problem deals with returning one result from 1 cell if 3 other cells match the correct criteria. Example: If Cell F1="2-Color" and Cell L1="4" and Cell N1="1" then place Cell M1 value "2700" in Sheet2 Cell A1. Maybe I'm thinking to hard by trying to make it an Hlookup or Array, now that I look at it mabye some type of IF function will work???. |
#4
![]() |
|||
|
|||
![]()
The formula is as follows
=SUMPRODUCT(--(F3:F326="2-Color"),--(L3:L326="4"),--(N3:N326="1"),M3:M326) Please note that this is an array formula and has to be entered with Control-Shift-Enter. Alok Joshi "Murph" wrote: I worded that example incorrectly, should have been: Example: If Cell F1:F326="2-Color" and Cell L1:L326="4" and Cell N1:N326="1" then sum Cell M1:M326 that match the above criteria and place that value in Sheet2 Cell A1. I tried this in the first cell on sheet 2 and got a "false": =IF(AND(Counts!F3:F326="2-Color",AND(Counts!L3:L326="4",AND(Counts!N3:N326=" 1"))),SUM(Counts!M3:M326)) "Don Guillett" wrote: Have a look in HELP index for AND =if(and(1,2,3),1,2) -- Don Guillett SalesAid Software "Murph" wrote in message ... First off thanks for always giving great assistance. My problem deals with returning one result from 1 cell if 3 other cells match the correct criteria. Example: If Cell F1="2-Color" and Cell L1="4" and Cell N1="1" then place Cell M1 value "2700" in Sheet2 Cell A1. Maybe I'm thinking to hard by trying to make it an Hlookup or Array, now that I look at it mabye some type of IF function will work???. |
#5
![]() |
|||
|
|||
![]()
Well, it is an array-formula, but it doesn't need to be entered with
CTRL-SHIFT-ENTER. In article , "Alok" wrote: The formula is as follows =SUMPRODUCT(--(F3:F326="2-Color"),--(L3:L326="4"),--(N3:N326="1"),M3:M326) Please note that this is an array formula and has to be entered with Control-Shift-Enter. |
#6
![]() |
|||
|
|||
![]()
Thanks for clarifying that. I was under the impression that all array
formulas had to be entered with Ctrl-shift-enter. Alok Joshi "JE McGimpsey" wrote: Well, it is an array-formula, but it doesn't need to be entered with CTRL-SHIFT-ENTER. In article , "Alok" wrote: The formula is as follows =SUMPRODUCT(--(F3:F326="2-Color"),--(L3:L326="4"),--(N3:N326="1"),M3:M326) Please note that this is an array formula and has to be entered with Control-Shift-Enter. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Automatically up date time in a cell | Excel Discussion (Misc queries) | |||
clock | Excel Worksheet Functions | |||
Array Function with VLOOKUP | Excel Worksheet Functions | |||
Can I count in an array based on a function? | Excel Worksheet Functions | |||
Formula to list unique values | Excel Worksheet Functions |