+ Reply to Thread
Results 1 to 4 of 4

Another IF function problem

  1. #1
    Registered User
    Join Date
    07-28-2010
    Location
    london, england
    MS-Off Ver
    Excel 2007
    Posts
    91

    Another IF function problem

    Hi

    I have a table of 3000 individuals who have all valued 13 of 45 products. I need a way of assigning whether an individual gave product 41 a negative value.

    So if individual 1 valued product 41 as negative I need a a way of placing a 1 next to all the procuts they valued, and if person 2 then valued 41 as positive I need to assign a 0 to all the procts they valued.

    Have been trying IF functions but not sure on exactly how to do this.

    Thanks in advance

    JAmes
    Attached Files Attached Files
    Last edited by j.farr3ll; 08-27-2010 at 06:40 AM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,374

    Re: Another IF function problem

    Hello,

    maybe

    =IF(SUMPRODUCT(--($A$2:$A$40=A2),--($B$2:$B$40=41),--($C$2:$C$40<0)),1,0)

    Adjust ranges to suit and copy down.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Another IF function problem

    try
    =SUMPRODUCT(--($A$2:$A$40=A2),--($B$2:$B$40=41),--($C$2:$C$40<0)) dragged down adjust ranges to suit
    daang slow typing again!
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    07-28-2010
    Location
    london, england
    MS-Off Ver
    Excel 2007
    Posts
    91

    Re: Another IF function problem

    Perfect solution again.

    You guys are awsome.

    Thanks

    James

+ 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