+ Reply to Thread
Results 1 to 11 of 11

Pre populate cell to left and right to match what was there last time that word was used

Hybrid View

  1. #1
    Registered User
    Join Date
    09-30-2019
    Location
    Midlands, England
    MS-Off Ver
    365
    Posts
    20

    Smile Pre populate cell to left and right to match what was there last time that word was used

    Is there a way to type a word into a cell in the B column. Then for the A and C cell either side to pre populate based on what you wrote in the A and C column last time that word was put in the B column.

    I hope I have written that in not too much of a confusing way.

    Any help gratefully received.

    Thank you

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Pre populate cell to left and right to match what was there last time that word was us

    If you already have a set of values manually added above, you can use something like =IFERROR(LOOKUP(2,1/($B$1:B4=B5),A1:A4),"")
    In my formula I already have values assigned to different words in A1:C4. When I added the same word in B5, it populated the cell with the last value found above.
    The ifferror will exclude errors, keeping the cell blank until you enter a value. Change the B A range with C for C column
    Click the * to say thanks.

  3. #3
    Registered User
    Join Date
    09-30-2019
    Location
    Midlands, England
    MS-Off Ver
    365
    Posts
    20

    Re: Pre populate cell to left and right to match what was there last time that word was us

    Sorry, I'm a bit of a novice with major automatic formulas. Where do i type that formula that you have mentioned above? I want to type into a b column cell. Then for it to pre populate the A and c cell either side according to what i type in the B cell. To match previous mentions of that same b cell mention.

  4. #4
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Pre populate cell to left and right to match what was there last time that word was us

    An example:
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-30-2019
    Location
    Midlands, England
    MS-Off Ver
    365
    Posts
    20

    Re: Pre populate cell to left and right to match what was there last time that word was us

    Thank you, that works perfectly on your example. But where do i put that formula for it to do it on mine. If I paste it into the multiple cells in my A column, it doesnt do anything. Sorry to be a pain.

  6. #6
    Registered User
    Join Date
    09-30-2019
    Location
    Midlands, England
    MS-Off Ver
    365
    Posts
    20

    Re: Pre populate cell to left and right to match what was there last time that word was us

    As a working example, I have text up to, and including line 52. So line 53 is where the substitutions would apply.

  7. #7
    Registered User
    Join Date
    09-30-2019
    Location
    Midlands, England
    MS-Off Ver
    365
    Posts
    20

    Re: Pre populate cell to left and right to match what was there last time that word was us

    So would i have this in A53...

    =IFERROR(LOOKUP(2,1/($B$1:B52=B53),$A$1:A53),"")

  8. #8
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Pre populate cell to left and right to match what was there last time that word was us

    Yeah, that's correct. And whenever you add data in B53 or any other cell below that is found in A1:C52, it will get updated.

  9. #9
    Registered User
    Join Date
    09-30-2019
    Location
    Midlands, England
    MS-Off Ver
    365
    Posts
    20

    Re: Pre populate cell to left and right to match what was there last time that word was us

    Thanks, I think ive sorted the A column now.

    Does it only work for those you've written before you started the auto fill lines. I.e if I got to line 100 and added a new word that wasnt used before and filled in A and C accordingly. If i wrote that word in a cell in B200. Would it auto fill A200 and C200. Or not because that wasnt in those first 52 lines i did myself? Thank you again for all you help.

  10. #10
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Pre populate cell to left and right to match what was there last time that word was us

    Yes, but only if you drag the formula to line 200 and replace the formulas on line 100 with manual entries. Kind of messy to keep both manual values and formulas, but it should work

  11. #11
    Registered User
    Join Date
    09-30-2019
    Location
    Midlands, England
    MS-Off Ver
    365
    Posts
    20

    Re: Pre populate cell to left and right to match what was there last time that word was us

    Thanks Paul. You've been amazingly helpful. Much appreciated.

+ 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. How do I match a specific word in a cell with that word in an array?
    By jmondego in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-20-2018, 02:52 PM
  2. [SOLVED] Populate a cell based of a match - Match/vlookup
    By jambo2013 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-01-2018, 06:55 AM
  3. Populate a cell based of a match - Match/vlookup
    By jambo2013 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-24-2018, 11:04 AM
  4. Replies: 5
    Last Post: 02-26-2017, 04:46 PM
  5. [SOLVED] Find word in text string and return word adjacent to the left
    By eadamquinn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-06-2014, 03:22 PM
  6. Replies: 4
    Last Post: 05-07-2012, 10:53 PM
  7. Replies: 1
    Last Post: 04-26-2012, 06:42 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