+ Reply to Thread
Results 1 to 10 of 10

Compare two columns, text to date.

Hybrid View

  1. #1
    Registered User
    Join Date
    06-18-2009
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Smile Compare two columns, text to date.

    I have two columns, salesman and date. This workbook tracks quotes by salesman. I need to know how many quotes for each salesman by the month. So what I need to know is how quotes salesman 'a' had in January and February and so on. I have several worksheets in this workbook that are all formatted the same. If anybody and help I would really appreciate it.
    Last edited by dygraham; 06-18-2009 at 02:40 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Compare two columns, text to date.

    Probably Pivot Table is Best for this:

    http://peltiertech.com/Excel/Pivots/pivotstart.htm

    If you can actually list all the sales people in a table vertically, and the months horizontally, then you can also use a formula to get the infor into this table...

    e.g. =Sumproduct(--($A$1:$A$100=$X2),--(Text($B$1:$B$100,"MMMM")=Y$1))

    where A1:A100 contains your salespeople list and B1:B100 the dates...

    X2 downwards contains the unique salespeople's names and Y1 rightwards contains the Months listed as January, February, etc..

    Formula would go in Y2 and copied down and across the table.
    Last edited by NBVC; 06-18-2009 at 01:19 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-18-2009
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Compare two columns, text to date.

    Even if the information is across several worksheets?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Compare two columns, text to date.

    Do you have a list of all the salespeople in a summary sheet?

    If yes, can you post a sample workbook with dummy data and use the sheetnames you are actually using....

  5. #5
    Registered User
    Join Date
    06-18-2009
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Compare two columns, text to date.

    Where do I post my Dummy spreadsheet.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Compare two columns, text to date.

    Here....

    click Post Reply and then click the paperclip icon.. Browse and Upload.

  7. #7
    Registered User
    Join Date
    06-18-2009
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Compare two columns, text to date.

    I did not see the paper clip, sorry for not paying attention. Thank you for your help
    Attached Files Attached Files

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Compare two columns, text to date.

    A couple of alternatives:

    Note: First take the dot away from Jan. and Feb. in C33 and D33...

    In Summary!C34:

    =SUMPRODUCT(--(Active!$D$4:$D$200=$B34),--(TEXT(Active!$C$4:$C$200,"mmm")=C$33))+SUMPRODUCT(--(Cold!$D$4:$D$200=$B34),--(TEXT(Cold!$C$4:$C$200,"mmm")=C$33))+SUMPRODUCT(--(Wins!$D$4:$D$200=$B34),--(TEXT(Wins!$C$4:$C$200,"mmm")=C$33))+SUMPRODUCT(--(Sold!$D$4:$D$200=$B34),--(TEXT(Sold!$C$4:$C$200,"mmm")=C$33))+SUMPRODUCT(--(Lost!$D$4:$D$200=$B34),--(TEXT(Lost!$C$4:$C$200,"mmm")=C$33))+SUMPRODUCT(--(Dead!$D$4:$D$200=$B34),--(TEXT(Dead!$C$4:$C$200,"mmm")=C$33))
    copied down the table and across the columns

    A shorter version uses a free Addin function, downloaded from here: Morefunc.xll

    =SUMPRODUCT(--(THREED(Active:Dead!$D$4:$D$200)=$B34),--(TEXT(THREED(Active:Dead!$C$4:$C$200),"mmm")=C$33))

  9. #9
    Registered User
    Join Date
    06-18-2009
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Compare two columns, text to date.

    Thank you very much, you put a lot typing into this and it is a big success. If there is anything I can do for you let me know.
    Daniel

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Compare two columns, text to date.

    My privilege.. just like doing this stuff.. so the challenge and satisfaction that I helped you solve the problem was enough

    Please though, mark the thread as "Solved" (click faq in my signature for instruction) and perhaps also have a look at the orange line in my signature....

+ 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