+ Reply to Thread
Results 1 to 17 of 17

creating a list based on one the value of a changing cell

  1. #1
    Registered User
    Join Date
    05-10-2023
    Location
    Amsterdam
    MS-Off Ver
    Microsoft 365 MSO (Version 2304 Build 16.0.16327.20200
    Posts
    7

    creating a list based on one the value of a changing cell

    Cell A contains a value, via a Vlookup it is checked if the value already exists or if it is a new value.
    If the value is new I would like that the value from cell A is added to the list and that it is done over and over if a new value is entered in Cell A.

    Not sure if this is possible in excel but wanted to try anyway.

    Thank you

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: creating a list based on one the value of a changing cell

    Hi JBTu and welcome to the forum,

    It sounds like you are looking for the IfError() formula.
    https://support.microsoft.com/en-us/...6-63f3e417f611
    The second part would be a formula.
    Without a workbook as an example it is hard to suggest much more.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: creating a list based on one the value of a changing cell

    Are you open to a VBA solution?

  4. #4
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: creating a list based on one the value of a changing cell

    Old execl version

    B1
    =IF(ROWS($A$1:A1)<=SUM(IF($A$1:$A$100="","",1/COUNTIF($A$1:$A$100,$A$1:$A$100))),INDEX(A:A,SMALL(IF(IF(ISERROR(ROW($A$1:$A$100)-1=MATCH($A$1:$A$100,$A$1:$A$100,0)),FALSE,ROW($A$1:$A$100)-1=MATCH($A$1:$A$100,$A$1:$A$100,0)),ROW($A$1:$A$100),""),ROWS($A$1:A1))),"")

    commit with Ctrl+Shift+Enter, then copied down.

    Office 365

    =DROP(UNIQUE(A:A),-1)

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: creating a list based on one the value of a changing cell

    JBTu...

    Hi. Before we get going on this one...

    Is your forum profile showing the Excel PRODUCT that you need this request to work with? Windows 11 is your Operating System, NOT your Excel /Office PRODUCT.

    The best solutions often rely on knowing WHICH Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date. If you aren't sure, in Excel go to File/Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this.

    The three most recent Excel PRODUCTS are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the Version number in your profile (e.g. MS365 (PC) Version 2211). The version number is in the About Excel section further down the Account page.

    Cheers,

    Glenn.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: Lá fhéile Pádraig sona dhaoibh

  6. #6
    Registered User
    Join Date
    05-10-2023
    Location
    Amsterdam
    MS-Off Ver
    Microsoft 365 MSO (Version 2304 Build 16.0.16327.20200
    Posts
    7

    Re: creating a list based on one the value of a changing cell

    Yes I would be open to a VBA solution

  7. #7
    Registered User
    Join Date
    05-10-2023
    Location
    Amsterdam
    MS-Off Ver
    Microsoft 365 MSO (Version 2304 Build 16.0.16327.20200
    Posts
    7

    Re: creating a list based on one the value of a changing cell

    I noticed, thanks for letting me know. it is updated now.

  8. #8
    Registered User
    Join Date
    05-10-2023
    Location
    Amsterdam
    MS-Off Ver
    Microsoft 365 MSO (Version 2304 Build 16.0.16327.20200
    Posts
    7

    Re: creating a list based on one the value of a changing cell

    Hi thanks for the replies.

    Still need to study the formula posted by windknife.
    But to make it a bit easier I added a small workbook with what I want to do.
    Cell B3 presents a value.
    C3 formula will look for that value in the productlist. if the value of B3 is "new" I want it added to the productlist.

    Thank you

    Test productcoding.xlsx

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

    Re: creating a list based on one the value of a changing cell

    Can't be done with a formula. Shall I move this to the VBA forum for you?
    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.

  10. #10
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: creating a list based on one the value of a changing cell

    Try this in your sheet;
    Please Login or Register  to view this content.
    EDIT: Just noticed you put up a sample file. Adapt the above to your own situation or wait until I get time tomorrow morning.
    Attached Files Attached Files
    Last edited by Croweater; 05-11-2023 at 08:32 AM.

  11. #11
    Registered User
    Join Date
    05-10-2023
    Location
    Amsterdam
    MS-Off Ver
    Microsoft 365 MSO (Version 2304 Build 16.0.16327.20200
    Posts
    7

    Re: creating a list based on one the value of a changing cell

    That is what I thought!
    Yes you can, thankyou

  12. #12
    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,988

    Re: creating a list based on one the value of a changing cell

    Done. See post #10 above.

  13. #13
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: creating a list based on one the value of a changing cell

    Try this in Sheet 1
    Please Login or Register  to view this content.
    Remove the formula in C3 as it is no longer required

  14. #14
    Registered User
    Join Date
    05-10-2023
    Location
    Amsterdam
    MS-Off Ver
    Microsoft 365 MSO (Version 2304 Build 16.0.16327.20200
    Posts
    7

    Re: creating a list based on one the value of a changing cell

    Thank you

    I am sorry but I have zero expertis in VBA. This is what I have now but it is not running.
    Please Login or Register  to view this content.
    Last edited by AliGW; 05-11-2023 at 09:06 AM. Reason: Code tags added.

  15. #15
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: creating a list based on one the value of a changing cell

    Where did Macro3 come from?

    Take out the first line ( Sub Macro3() )and the last couple of lines (i.e. those that are NOT in what I posted), save it as a macro enabled workbook, and it will work for you.

    Oh...and this macro has to be in sheet1 NOT module1. Right click on Sheet1 tab> View Code and Paste what I put up in post#13. Don't try to use the macro menu.
    Last edited by Croweater; 05-11-2023 at 10:12 PM.

  16. #16
    Registered User
    Join Date
    05-10-2023
    Location
    Amsterdam
    MS-Off Ver
    Microsoft 365 MSO (Version 2304 Build 16.0.16327.20200
    Posts
    7

    Re: creating a list based on one the value of a changing cell

    It worked!!!

    Thank you so much!!

  17. #17
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: creating a list based on one the value of a changing cell

    You sound surprised!

    No problems. Thanks for the feedback.

+ 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. Help with changing row height based on Cell Value from a list
    By Ryanbadtke123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-01-2021, 12:42 PM
  2. [SOLVED] creating a list based on the value in one cell
    By Losguapos1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-01-2016, 11:08 AM
  3. [SOLVED] Generate list based on a changing value in one cell.
    By Ronnet2 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-27-2015, 08:19 PM
  4. Changing other cell values based on Dropdown list
    By FransB in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-25-2014, 04:00 AM
  5. Solver changing cell based on a list
    By KBecker in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-22-2014, 11:46 AM
  6. [SOLVED] Changing Cell Value Based On List Box Selection
    By Brumbot in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2013, 05:44 AM
  7. Creating a list from a cell's changing values
    By benq in forum Excel General
    Replies: 2
    Last Post: 07-20-2010, 05:22 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