+ Reply to Thread
Results 1 to 3 of 3

Modify formula to reflect unique entires

Hybrid View

  1. #1
    Registered User
    Join Date
    09-24-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    11

    Modify formula to reflect unique entires

    This formula

    =SUMPRODUCT((E$4:E$73=1)*($D4:$D73="KVRV"))

    is working perfect. I'm using it five different times with the KVRV section changed to reflect the five different options that can go in column D.

    Now I need to have a total of UNIQUE entries in Column B where Column E=1. Something like this:

    =SUMPRODUCT((E$4:E$73=1)*($B4:$B73="different unique entries"))

    Any ideas?

    Thanks

  2. #2
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111

    Re: Modify formula to reflect unique entires

    G'day

    Since your using excel 2007 use the Countifs formula

    Or if your sheet needs to be converted back to 2003 try

    =SUMPRODUCT((E$4:E$73=1)*($B4:$B73="A")+(E$4:E$73=1)*($B4:$B73="b")+(E$4:E$73=1)*($B4:$B73="c")+(E$4:E$73=1)*($B4:$B73="d")+(E$4:E$73=1)*($B4:$B73="e"))
    Tho I'm not clear on how your achieving in finding your unique.

    Just throwing an idea around.

    Cheers

    RC
    Have I made you happy ??? If yes, please make me happy by pressing the http://www.excelforum.com/images/buttons/reputation-40b.png Add Reputation button in my post.
    Please don't forget to do the same to other contributors of this forum.

    Thanks
    I don't void confusion, I create it

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Modify formula to reflect unique entires

    Quote Originally Posted by RodneyW
    Now I need to have a total of UNIQUE entries in Column B where Column E=1.
    As RC mentions - if you're using XL2007 as implied by profile you can make use of COUNTIFS - in this particular context along lines of:

    =SUMPRODUCT((($E$4:$E$73=1)*($B$4:$B$73<>""))/COUNTIFS($B$4:$B$73,$B$4:$B$73&"",$E$4:$E$73,$E$4:$E$73&""))
    If you prefer to avoid COUNTIFS for sake of backwards compatibility you can use either of the below

    =SUMPRODUCT(($E$4:$E$73=1)*($B$4:$B$73<>"")*(MATCH($B$4:$B$73&"",$B$4:$B73&"",0)=(ROW($B$4:$B$73)-ROW($B$4)+1)))
    confirmed with Enter
    
    =SUM(IF(FREQUENCY(IF(($E$4:$E$73=1)*($B$4:$B$73<>""),MATCH($B$4:$B$73,$B$4:$B$73,0)),ROW($B$4:$B$73)-ROW($B$4)+1)>0,1))
    confirmed with CTRL + SHIFT + ENTER (enter alone will not suffice)

+ 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