HLookup? or an array function??

M

Murph

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???.
 
M

Murph

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))
 
A

Alok

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
 
J

JE McGimpsey

Well, it is an array-formula, but it doesn't need to be entered with
CTRL-SHIFT-ENTER.
 
A

Alok

Thanks for clarifying that. I was under the impression that all array
formulas had to be entered with Ctrl-shift-enter.

Alok Joshi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top