+ Reply to Thread
Results 1 to 17 of 17

Removing Duplicates through using if statements

Hybrid View

excelnovice936 Removing Duplicates through... 09-11-2013, 12:17 PM
liz5818 Re: Removing Duplicates... 09-11-2013, 12:22 PM
Sam Capricci Re: Removing Duplicates... 09-11-2013, 12:27 PM
excelnovice936 Re: Removing Duplicates... 09-11-2013, 12:33 PM
AlKey Re: Removing Duplicates... 09-11-2013, 12:42 PM
excelnovice936 Re: Removing Duplicates... 09-11-2013, 02:02 PM
AlKey Re: Removing Duplicates... 09-11-2013, 02:09 PM
excelnovice936 Re: Removing Duplicates... 09-11-2013, 02:14 PM
AlKey Re: Removing Duplicates... 09-11-2013, 02:20 PM
excelnovice936 Re: Removing Duplicates... 09-11-2013, 02:29 PM
AlKey Re: Removing Duplicates... 09-11-2013, 02:39 PM
Sam Capricci Re: Removing Duplicates... 09-11-2013, 02:42 PM
AlKey Re: Removing Duplicates... 09-11-2013, 02:46 PM
excelnovice936 Re: Removing Duplicates... 09-11-2013, 02:47 PM
AlKey Re: Removing Duplicates... 09-11-2013, 02:48 PM
excelnovice936 Re: Removing Duplicates... 09-11-2013, 02:56 PM
AlKey Re: Removing Duplicates... 09-11-2013, 03:02 PM
  1. #1
    Registered User
    Join Date
    09-11-2013
    Location
    Houston, Tx
    MS-Off Ver
    Excel 2010
    Posts
    21

    Removing Duplicates through using if statements

    Hello:

    I have a list of Dates, however many of them are repeated. I want to have a list of just each individual date in a seperate column.

    Below is my column A, it has mulpiple dates:

    12-AUG-13
    12-AUG-13
    12-AUG-13
    12-AUG-13
    12-AUG-13
    12-AUG-13
    12-AUG-13
    12-AUG-13
    12-AUG-13
    12-AUG-13
    13-AUG-13
    13-AUG-13
    14-AUG-13
    14-AUG-13
    14-AUG-13
    14-AUG-13
    15-AUG-13
    15-AUG-13
    15-AUG-13
    15-AUG-13
    16-AUG-13
    16-AUG-13
    16-AUG-13
    16-AUG-13
    16-AUG-13
    17-AUG-13
    17-AUG-13
    17-AUG-13
    17-AUG-13
    18-AUG-13
    18-AUG-13
    18-AUG-13

    What equation should I use to have another column with this format:

    12-AUG-13
    13-AUG-13
    14-AUG-13
    15-AUG-13
    16-AUG-13
    17-AUG-13
    18-AUG-13


    Thanks for the help.

  2. #2
    Registered User
    Join Date
    06-27-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    94

    Re: Removing Duplicates through using if statements

    my suggestion would be create a pivot table that will show the dates. I'm assuming you just want to know what the individual dates are. using a pivot table could allow you to know how many times that date was listed as well.

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: Removing Duplicates through using if statements

    There are many options, you could use the filter > advanced > copy to another location and check unique records only, you could use the remove duplicates function, or the group function or the subtotal function.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    09-11-2013
    Location
    Houston, Tx
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Removing Duplicates through using if statements

    hey guys, the thing is that I am trying to automate this because this is for a project that is going to be used in the future. and the initial informatino will look like the first set of data I posted. But i need to figure out how to make it into the second set of dates using if statements or any excel formula so this project can be implemented without other users of this tool having to do anything. thanks

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Removing Duplicates through using if statements

    Assuming data starts in A2

    Enter in B2

    =INDEX($A$2:$A$32, MATCH(0, COUNTIF($B$1:B7, $A$2:$A$32), 0))

    This is an array formula must entered with Ctrl-Shift+Enter
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Registered User
    Join Date
    09-11-2013
    Location
    Houston, Tx
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Removing Duplicates through using if statements

    @alkey:
    That did not seem to work.

    I was thinking something along the lines of:

    =if(A2=A1,if (A3=A2),if(a3=a4)....

    im not sure if that is the right thought process though

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Removing Duplicates through using if statements

    You probably did not enter the formula right. Please see attached fileUniques.xlsx

  8. #8
    Registered User
    Join Date
    09-11-2013
    Location
    Houston, Tx
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Removing Duplicates through using if statements

    okay. i see that. it looks great. butfor example if you add the date 8/19/2013 right after to the list in A? I am looking for something that will automatically add new dates to column B as column A is changed.

  9. #9
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Removing Duplicates through using if statements

    You can drag formula farther down and when new dates added the formula will pick it up. Just extend the range to accommodate grows.

  10. #10
    Registered User
    Join Date
    09-11-2013
    Location
    Houston, Tx
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Removing Duplicates through using if statements

    alright, I tried to do that I added additional dates to column A, i added 2 "8/19/2013" and 1 "8/20/2013" and expanded the range to look like : =INDEX($A$2:$A$35, MATCH(0, COUNTIF($B$1:B9, $A$2:$A$35), 0)) and it didnt do anything?

    sorry for all the questions and thanks alot for your help

  11. #11
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Removing Duplicates through using if statements

    The range in the formula ($A$2:$A$35) needs to be of the same range as column A. After you adjusted the range in the formula, make sure that you entered it with Ctrl+Shift+Enter. If still have trouble with arrays please let me know and will provide you with an alternative.

  12. #12
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: Removing Duplicates through using if statements

    BTW, I tried AlKey's original formula as written and it didn't work but as included in their attachment it does work. It should be ok once you do the control shift enter to simply drag down, w/o hitting control shift enter each time, it worked that way for me. Congrats Alkey, nice formula, I'll keep that one.

  13. #13
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Removing Duplicates through using if statements

    Thank you Sambo kid

  14. #14
    Registered User
    Join Date
    09-11-2013
    Location
    Houston, Tx
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Removing Duplicates through using if statements

    Thanks a bunch guys, I got it working. truly really helpful

  15. #15
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Removing Duplicates through using if statements

    You're Welcome and please mark thread as "Solved" if your issue has been resolved.

  16. #16
    Registered User
    Join Date
    09-11-2013
    Location
    Houston, Tx
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Removing Duplicates through using if statements

    where do i mark it as solved?

  17. #17
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Removing Duplicates through using if statements

    Select Thread Tools-> Mark thread as Solved

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 6
    Last Post: 03-29-2012, 12:16 AM
  2. try to Removing Duplicates
    By GMBunk in forum Excel General
    Replies: 3
    Last Post: 02-16-2007, 06:30 PM

Tags for this Thread

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