Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Murph
 
Posts: n/a
Default HLookup? or an array function??

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   Report Post  
Murph
 
Posts: n/a
Default

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   Report Post  
Alok
 
Posts: n/a
Default

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   Report Post  
JE McGimpsey
 
Posts: n/a
Default

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   Report Post  
Alok
 
Posts: n/a
Default

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
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
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM
Array Function with VLOOKUP CoRrRan Excel Worksheet Functions 15 April 8th 05 05:54 PM
Can I count in an array based on a function? HokieLawrence Excel Worksheet Functions 2 February 12th 05 03:05 AM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM


All times are GMT +1. The time now is 08:51 PM.

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"