+ Reply to Thread
Results 1 to 10 of 10

Need to sort range of values so it only selects one date to the range

Hybrid View

sparksy1981 Need to sort range of values... 04-27-2013, 11:50 PM
FDibbins Re: Need to sort range of... 04-28-2013, 12:49 AM
sparksy1981 Re: Need to sort range of... 04-28-2013, 12:56 AM
FDibbins Re: Need to sort range of... 04-28-2013, 01:00 AM
sparksy1981 Re: Need to sort range of... 04-28-2013, 01:18 AM
FDibbins Re: Need to sort range of... 04-28-2013, 01:31 AM
sparksy1981 Re: Need to sort range of... 04-28-2013, 02:03 AM
FDibbins Re: Need to sort range of... 04-28-2013, 01:20 PM
sparksy1981 Re: Need to sort range of... 04-28-2013, 07:44 PM
FDibbins Re: Need to sort range of... 04-28-2013, 07:47 PM
  1. #1
    Registered User
    Join Date
    04-27-2013
    Location
    australia
    MS-Off Ver
    Excel 2010
    Posts
    8

    Need to sort range of values so it only selects one date to the range

    Hi in need of same desperate help, have spent the last 4 to five hours trying to find a solution and hoping someone out there can make some magic for me.

    as per attached spreedsheet to reference to.

    Sheet 1 (2) is my data range in column A are a list of the POs i have outstanding, as you can see the same number appears more than once. In column J is the required delivery date.

    Sheet Graph - i have created a graph to capture the % that are outstanding by how many days, however it captures multiple lines for the same PO# mutliple times when the delivery date in column j is the same, it only needs to capture the number once. It is distorting the actual figures.

    Sheet Graph Data - is how im going about getting the data to the graph, basically i need to know how i can get it to only count one of the multiple PO# in sheet 1 (2) and the due date instead at the moment it counts the same po # multiple times instead of just once. As you can see in sheet 1 (2) column T i only have 141 purchase orders in total, so the graph needs to show the same and the depending on the due date for the 141 po's

    note - Sheet 1(2) is constantly changing from day to day in regards to the POnum etc etc and it is imported from maximo so cant chnge much on sheet1(2)

    i hope someone can help me with this it would be greatly appreciated
    Attached Files Attached Files
    Last edited by sparksy1981; 04-27-2013 at 11:52 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Need to sort range of values so it only selects one date to the range

    Hi and welcome to the forum

    Try this little trick. In AD7 enter this and copy it down...
    =IF(COUNTIF($A$7:A7,A7)=1,J7,"")
    Then on your GRAPH DATA sheet, reference AD instead of J
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    04-27-2013
    Location
    australia
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Need to sort range of values so it only selects one date to the range

    thanks for your reply fdibbins, trying now god i hope you have nailed this one for me
    Last edited by sparksy1981; 04-28-2013 at 01:02 AM.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Need to sort range of values so it only selects one date to the range

    I am adding a helper column in AD. Copy that formula to AD7, and then copy it down as far as you need it

  5. #5
    Registered User
    Join Date
    04-27-2013
    Location
    australia
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Need to sort range of values so it only selects one date to the range

    it worked a treat your a super star, quick question though think im doing something wrong in another area if you look at sheet1 (2) - T1 i get 141 in total purchase orders and in sheet graph data J11 i get 142 in total . i cant believe how quick you did that, if only i had this knowledge

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Need to sort range of values so it only selects one date to the range

    Now that you have that helper column (which you can hide if you want by the way) it makes you count much easier....

    T1 =COUNT(AD7:AD373)
    for LOCAL...=COUNTIFS(AD7:AD373,">"&0,D7:D373,"LOCAL")
    for HOUSTON...=COUNTIFS(AD7:AD373,">"&0,D7:D373,"HOUSTON")

  7. #7
    Registered User
    Join Date
    04-27-2013
    Location
    australia
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Need to sort range of values so it only selects one date to the range

    thanks you must have been reading my mind, were do i gain skills like yours? quick question how hard would it be to make separate graphs like sheet graph that showed the percentage of houston to promised date and the percentage of local to promised date?

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Need to sort range of values so it only selects one date to the range

    see if the attached is what you want? I just copied the existing chart and changed the range, adjust as needed
    I changed your sumproduct() to countifS()

    Also, I would suggest that you modify your profile to indicate which version of excel you are using - "latest excel" may be fine for now, but it could change over time?
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    04-27-2013
    Location
    australia
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Need to sort range of values so it only selects one date to the range

    perfect mate, thanks very much for your help with this greatly appreciated.

    as requested updated mate

    thanks again works a treat

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Need to sort range of values so it only selects one date to the range

    Happy to help.

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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