+ Reply to Thread
Results 1 to 4 of 4

Add two unique values from two separate columns

  1. #1
    Registered User
    Join Date
    09-27-2011
    Location
    Pleasant hill, California
    MS-Off Ver
    Excel 2007
    Posts
    10

    Post Add two unique values from two separate columns

    I am trying to figure out how many months a salesman has worked in a given year. example: Column A has Salesman A, Salesman B and Salesman C. Column B has the date. Some salesman will have multily sales in a month. How can I ask excel to tell me how many months a salesman has worked.

    Salesman A 1/5/11
    Salesman B 1/5/11
    Salesman B 1/10/11
    Salesman A 2/15/11
    Salesman B 2/20/11
    Salesman C 2/25/11

    Answer should be

    Salesman A = 2
    Salesman B = 2
    Saleman C = 1
    Last edited by Mrcoop; 09-27-2011 at 08:58 PM. Reason: was asked to

  2. #2
    Valued Forum Contributor
    Join Date
    05-23-2011
    Location
    Lahore PK
    MS-Off Ver
    Excel 2007, 2013
    Posts
    627

    Re: Add two unique values from two separate columns

    see attatchment

    this could be done through two helper columns and then sum through sumif or pivot table
    Attached Files Attached Files
    Azam
    If you want to say Thank you to a member, click the reputation icon (Star) in the left bottom of the post.
    For prompt answer, be descriptive, concise, short, direct, and to-the-point.

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,055

    Re: Add two unique values from two separate columns

    Or this, without helper column:
    Attached Files Attached Files
    Never use Merged Cells in Excel

  4. #4
    Valued Forum Contributor
    Join Date
    05-23-2011
    Location
    Lahore PK
    MS-Off Ver
    Excel 2007, 2013
    Posts
    627

    Re: Add two unique values from two separate columns

    Hi zbor

    this formula do not give correct answer if a salesman do not work or work after gap of a month. see attatchment

    This formula is actually calculating the maximum no of months between dates

    the data range in the formula cell H3 and H4 is also not correct
    Attached Files Attached Files
    Last edited by Azam Ali; 09-28-2011 at 05:28 AM.

+ 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