+ Reply to Thread
Results 1 to 6 of 6

How to fill duplicate sells with same values?

  1. #1
    Registered User
    Join Date
    08-14-2020
    Location
    New Delhi
    MS-Off Ver
    2013
    Posts
    3

    How to fill duplicate sells with same values?

    excel forum.PNG
    Asking through small example.


    As you can see in the photo column A and column E have have some duplicates.
    Column B has numbers corresponding to data of column A. What I want is to paste the data of column B in front of column E but along the same values as it is for column A and B.

    Example: the answer should be like :
    From the data as you can see letter B in columnA has number 0 corresponding to it so print the same corresponding infront of it's duplicate letter B.
    You can see letter T in columnA has number 8 corresponding to it so print the same corresponding number infront of it's duplicate letter T.

    How am I supposed to this on below data?
    Attached Files Attached Files
    Last edited by Hari1111996; 08-15-2020 at 02:11 PM.

  2. #2
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: How to fill duplicate sells with same values?

    First, welcome to the forum

    Like this with column-D populated?

    Hari1111996.png

    If so, this is the formula in D1, copied down as far as you need:
    =IFERROR(INDEX(B1:B13, MATCH(E1, A1:A13, 0)), "")

    If this is not correct then please attach a workbook in accordance with the instructions in the yellow banner - especially the part about expected results!
    Geoff

    Did I help significantly? If you wish, click on * Add Reputation to say thanks.
    If your problem has been resolved please select ?Solved? from the Thread Tools menu

  3. #3
    Registered User
    Join Date
    08-14-2020
    Location
    New Delhi
    MS-Off Ver
    2013
    Posts
    3

    Re: How to fill duplicate sells with same values?

    Thank you very much, but I am facing a little problem.
    I have attached the sheet by editing the question above, used two formulas, in column G and column H.
    The formula works for the example but only works till certain rows in the excel worksheet.

  4. #4
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: How to fill duplicate sells with same values?

    First of all, your col-H formula is correct - sorry for my erroneous lack of absolute references in my post #2.

    The problem you now have is that some of the col-E content is text and some is numeric. Col-I is all text. You can't compare text with numeric data.

    The easiest way to see is to expand the width of col-E a bit then remove the center format for col-E. You will now see that E2:E15 is left aligned, meaning it is text whereas E16:E44 is right aligned meaning it is numeric.

    One way to fix this is:
    1. select col-E
    2. Ribbon > Data > TextToColumns
    3. Next , Next
    4. You should now be on the screen that lets you select the format - select "Text" then "Finish"
    Your formulas should now be working as expected.

  5. #5
    Registered User
    Join Date
    08-14-2020
    Location
    New Delhi
    MS-Off Ver
    2013
    Posts
    3

    Re: How to fill duplicate sells with same values?

    Thanks brother, it worked

  6. #6
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: How to fill duplicate sells with same values?

    No problem. Thanks for the feedback and reputation points.

+ 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: 3
    Last Post: 07-04-2020, 10:46 PM
  2. [SOLVED] Duplicate data for multiple cells by Auto Fill / Fill Down - Dynamic Table
    By ITY in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-23-2019, 09:57 AM
  3. Replies: 4
    Last Post: 08-21-2015, 03:59 PM
  4. Using INDEX/RAND to fill cells with no duplicate values
    By Tony Vargo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-02-2014, 05:17 AM
  5. [SOLVED] VBA to copy sells
    By Skorpionkz in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-26-2013, 10:47 AM
  6. Sum up several sells from different sheets
    By Olegred in forum Excel General
    Replies: 1
    Last Post: 08-19-2007, 12:40 PM
  7. TWO IF-salesperson sells Queen
    By Bel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-25-2005, 07:05 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