+ Reply to Thread
Results 1 to 6 of 6

HLookup? or an array function??

  1. #1
    Murph
    Guest

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



  2. #2
    Don Guillett
    Guest

    Re: HLookup? or an array function??

    Have a look in HELP index for AND
    =if(and(1,2,3),1,2)

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "Murph" <[email protected]> wrote in message
    news:[email protected]...
    > 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. #3
    Murph
    Guest

    Re: HLookup? or an array function??

    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
    > [email protected]
    > "Murph" <[email protected]> wrote in message
    > news:[email protected]...
    > > 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. #4
    Alok
    Guest

    Re: HLookup? or an array function??

    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
    > > [email protected]
    > > "Murph" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > 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. #5
    JE McGimpsey
    Guest

    Re: HLookup? or an array function??

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

    In article <[email protected]>,
    "Alok" <[email protected]> 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. #6
    Alok
    Guest

    Re: HLookup? or an array function??

    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 <[email protected]>,
    > "Alok" <[email protected]> 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1