+ Reply to Thread
Results 1 to 3 of 3

A formula to remove duplicate vales from one column while keeping all other information.

Hybrid View

  1. #1
    Registered User
    Join Date
    04-02-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    10

    A formula to remove duplicate vales from one column while keeping all other information.

    We have an accounting program that doesn't have the best reporting functions, so I need some help to get rid of some info.

    We have the invoice number in column B which is displayed for every item that was invoice for that sale. The problem is it also does this to the freight charge in column F. We are trying to find out how much freight we charged for a certain period but this is obviously giving us false readings, ie, an order with 5 items and a total freight cost of $55 will give us $275.

    So I am wondering if there is a formula that says something like 'If information in Column B is a duplicate then delete information on corresponding row in column F.

    You can also tell me I'm a pillock and this isn't possible.

    I've attached the spreadsheet. Some cells have been manually deleted but there are just too many with not much time to do it that way.

    Cheers,
    Attached Files Attached Files

  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,050

    Re: A formula to remove duplicate vales from one column while keeping all other informatio

    Nope, no pillock, thios is relatively simple

    This wont delete those duplicate values (formulas cant do that), but put this in G5 and copy down...
    =IF(COUNTIF($B$5:B5,B5)>1,"",F5)

    Now, you can either just work from that column, and leave things as they are, or, you can copy/paste values over the original data, then delete those formulas.

    On a side note, this formula will pull out all unique Inv Numbers for you. However, because of the volume, it will slow your file down. So, if you want to use it, copy/paste values once you have finished.

    =IFERROR(INDEX($B$5:$B$2405,MATCH(0,INDEX(COUNTIF($J$4:J4,$B$5:$B$2405),),0)),"")
    copied down

    You can then use that list to sum/extract your invoice values
    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-02-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    10

    Re: A formula to remove duplicate vales from one column while keeping all other informatio

    Absolutely perfect! Thanks for your help!

+ 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. [SOLVED] Display vales for duplicate entries
    By SHUTTEHFACE in forum Excel General
    Replies: 7
    Last Post: 12-05-2014, 01:03 PM
  2. Keeping Duplicate Data and Remove Everything Else
    By Kanook22 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-18-2014, 04:26 PM
  3. Remove Duplicate Prospective Customer Information
    By csmith1281 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-08-2014, 02:25 PM
  4. [SOLVED] Formula to prevent duplicate information in a column
    By haleakala17 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-31-2012, 12:07 AM
  5. Remove Duplicate Information After Comparing 2 Worksheets
    By CatExcel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-03-2012, 06:03 PM
  6. Remove Duplicate Cells while keeping information
    By Cogentesque in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-30-2011, 01:01 AM
  7. finding dup vales and remove corrospoding record
    By Alok.Behria in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-21-2007, 04:38 AM

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