+ Reply to Thread
Results 1 to 10 of 10

auto-populate a duplicate Cell

  1. #1
    Registered User
    Join Date
    09-30-2021
    Location
    Scotland
    MS-Off Ver
    Microsoft 365
    Posts
    4

    auto-populate a duplicate Cell

    Hey guys,

    Sorry for the confusing question on this because i am a complete noob with XL.

    Im currently looking to auto-populate cells (i have attached an XL example)

    You will notice that on the left column i used the following formula -

    =B4&"-"&COUNTIF($B$4:B4,B4)

    However, what has been bugging me is that i want the BRAND column to auto-populate so Mary has all the Mars and Harry has his Crunchy filled.

    Because of the COUNTIF formula only counts the amount, it doesnt equate for the single value and thus does not auto-populate and fill in the blank cells.

    The reason why i use COUNTIF formula is that im taking data from another XL file to match the NAME and BRAND to fill out the matches.

    Does anyone know a workaround for this at all? or a formula to fill in the blank cells relating to Mary.

    Apologies if that was not clear.
    Attached Files Attached Files
    Last edited by confusedJJ; 09-30-2021 at 09:18 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: auto-populate a duplicate Cell

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    09-30-2021
    Location
    Scotland
    MS-Off Ver
    Microsoft 365
    Posts
    4

    Re: auto-populate a duplicate Cell

    Thank you! Updated and added the XL file

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: auto-populate a duplicate Cell

    Where is the brand data coming from? You have completely removed all formulae and I see no lookup table anywhere.

    Please attach a more complete sample workbook.

    The important formula is the lookup formula - you haven't told us what that is.
    Last edited by AliGW; 09-30-2021 at 04:33 AM.

  5. #5
    Registered User
    Join Date
    09-30-2021
    Location
    Scotland
    MS-Off Ver
    Microsoft 365
    Posts
    4

    Re: auto-populate a duplicate Cell

    Hi AliGW

    Do apologise. I have now updated the XL file that includes my work and formula for the vlookup.

    I hope it makes sense.

    Many thanks

    John

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: auto-populate a duplicate Cell

    As I suspected, you are completely over-thinking it.

    Here you go:

    =VLOOKUP(C2,'Vlookup data'!B:C,2,FALSE)

  7. #7
    Registered User
    Join Date
    09-30-2021
    Location
    Scotland
    MS-Off Ver
    Microsoft 365
    Posts
    4

    Re: auto-populate a duplicate Cell

    Afternoon,

    Thanks for your help on this.

    Unfortunately, the formula is not exactly the correction im looking for.

    Ive updated the XL file to hopefully show what im looking for. Ive added a bit more data so it shows what my issue is.

    Its really just the cells in "RESERVE_NUMBER" where the "SEAT NUMBER" is the same but its not populating the rest.

    The tricky issue that I am having is that I have to take data from another source which only gives me specific points where as when matching it,

    it doesnt fill out the rest.

    I just want it to populate on the data already there rather than creating new data.

    Hope that makes sense.

    Many thanks again for your patience on this.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: auto-populate a duplicate Cell

    Just read that and it makes pretty much no sense to me at all, but I'll have a look at your updated workbook.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: auto-populate a duplicate Cell

    No - don't get the logic AT ALL.

    12432-3 and 12432-4 do NOT exist in the lookup data - how is Excel meant to determine that you therefore wish to reallocate J1 and J2???

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: auto-populate a duplicate Cell

    Given your data, I cannot see a way of differentiating the J1/J2 situation nor the M56.

    Based on Seat Number, Ali's formula gives the "expected" result i.e. for a given Seat Number the Reserve Number is the same.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this 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. [SOLVED] Auto Populate cell based on auto filter selection from table in same sheet
    By missydanni in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-02-2013, 05:03 PM
  2. [SOLVED] Auto Populate a cell
    By StephenSmith in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-23-2013, 04:02 PM
  3. Replies: 3
    Last Post: 02-28-2012, 11:54 AM
  4. Macro to auto populate the destination cell based on the values of the previous cell
    By Avinash Kumar in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-05-2009, 02:06 AM
  5. Auto-populate next available cell
    By bigbadlee in forum Excel General
    Replies: 3
    Last Post: 05-16-2009, 05:27 PM
  6. [SOLVED] Auto populate a cell
    By Sam Ricca in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2006, 10:55 AM
  7. [SOLVED] Auto Populate a cell
    By Bellsouth in forum Excel General
    Replies: 3
    Last Post: 03-30-2005, 10:06 AM

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