+ Reply to Thread
Results 1 to 7 of 7

2 Cells With VLOOKUP, Circular reference - VBA Solution?

  1. #1
    Registered User
    Join Date
    02-20-2019
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    4

    2 Cells With VLOOKUP, Circular reference - VBA Solution?

    Hello,

    I want to give users of a form the option to populate one of 2 cells, with the other then populating with a LOOKUP. Obviously I get a circular reference but I am struggling to come up with a solution.

    GL Code | GL Decscription
    =IFERROR(VLOOKUP(G10, 'RS Budget'!Y:Z, 2, FALSE), "") | =IFERROR(VLOOKUP(F10, 'RS Budget'!X:Y, 2, FALSE), "")
    Last edited by AliGW; 02-20-2019 at 07:06 AM.

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

    Re: 2 Cells With VLOOKUP, Circular reference

    Welcome to the forum!

    You cannot have a formula and the option to enter data in the same cell without overwriting the formula. Why not use data validation and create a drop-down list in the second column, leaving a formula in the first? Why do you need this either/or scenario?
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    02-20-2019
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    4

    Re: 2 Cells With VLOOKUP, Circular reference

    Thank you, it's my first time here.

    I want data validation in both. I basically want the user to have the option to input or select their "GL Code" if they know it, but I want them to be able to select a description of the code if they don't; with the "GL code" then automatically populating.

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

    Re: 2 Cells With VLOOKUP, Circular reference

    Yes, so I see. Interesting choice of user name.

    What you want to do won't be possible without VBA. Shall I move this to the VBA section for you?

  5. #5
    Registered User
    Join Date
    02-20-2019
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    4

    Re: 2 Cells With VLOOKUP, Circular reference

    Aha! hat happens to be the first letters of my Surname and my initials - maybe I didn't think that through.

    I thought that might be the case, I would appreciate it if you could please?

  6. #6
    Registered User
    Join Date
    02-20-2019
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    4

    Re: 2 Cells With VLOOKUP, Circular reference

    Will I get notifications still?

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,381

    Re: 2 Cells With VLOOKUP, Circular reference

    Yes, you should do.

    maybe I didn't think that through.
    Maybe you didn't - your IP address is remarkably similar to someone else who was banned from here, so I am sure you will understand my being somewhat suspicious. Anyway, I have moved your thread for you.

+ 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] circular reference in vlookup formula
    By jrtaylor in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-23-2017, 09:18 PM
  2. Circular reference with dependent formulas between cells
    By ryan in louisville in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-12-2017, 08:36 AM
  3. Greater of two cells without circular reference error
    By TIF145 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-11-2014, 05:45 PM
  4. Replies: 2
    Last Post: 02-23-2014, 06:06 PM
  5. Recalc of circular reference cells after goal seek
    By toddk63 in forum Excel General
    Replies: 8
    Last Post: 01-07-2013, 11:14 PM
  6. Replies: 6
    Last Post: 11-11-2011, 06:32 AM
  7. Replies: 1
    Last Post: 08-21-2007, 07:22 PM

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