+ Reply to Thread
Results 1 to 7 of 7

Vookup circular reference problem

  1. #1
    Registered User
    Join Date
    09-28-2014
    Location
    Osijek, Croatia
    MS-Off Ver
    2013
    Posts
    5

    Vookup circular reference problem

    Hi,

    I'm looking for a way to quickly fill in prices in tables.
    Column A has the item, B has the price.
    In column A items repeat multiple times.
    Column B is initially blank in witch I put the Vlookup formula.
    I want to manually fill in the prices, starting from top and replacing the formula cell. If the item in column A appears again it should automatically get the previous value with the formula and I skip it and continue down.

    Basically my formula does work. The problem is the tables are not mine, I receive them from multiple people and it may contain up to 10000 rows(of which 300 are unique), and the items are always different. So sometimes this formula works and sometimes it gets stuck or something, I guess because of the circular reference problem. I tried many sugested thing for the cilcular refrence but non helped in the long run.

    Does someone have an alternative or an fix for my formula? VBA/Macro is also acceptable.

    Darko
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Vookup circular reference problem

    Would you show the results you expect and where, and explain how you calculate the results. It's not clear what the stuff is in columns G:J
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    09-28-2014
    Location
    Osijek, Croatia
    MS-Off Ver
    2013
    Posts
    5

    Re: Vookup circular reference problem

    In the example in the column A-D is the data I have and the function i put in.
    The column G-J is the same as A-D but with field in data in column I. This is how it should look like.
    In this example the formula works ( I gues due to small number of data) but I still get the circular reference notification.
    I would like to do it without the circular reference if posible.
    Hope this helps to clarify

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Vookup circular reference problem

    Try this in C3 and fill down

    =VLOOKUP(A3,A$2:C2,3,FALSE)

    Initially it will show a column of #N/A errors, when you override the first one with an actual price, it will clear all errors for the same item.

    Is that what you wanted?

  5. #5
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Vookup circular reference problem

    Try in "C3"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Instead of vlookup i am suggest index match.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Vookup circular reference problem

    If you're just seeking the last listed price for each fruit listed in the G:J table then in C3

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    But that will only work when the column G fruits are in alphabetical order, either in the list as a whole or their individual sections.

    But this is clearly a much simplified example and probably doesn't represent the size of nor conain your actual data. We often find that when we give an answer to what is a trivial non representative example when the solution is used with the real world data it doesn't work because of factors like string length and other stuff which is important but hasn't been mentioned.

    Therefore upload your real workbook (or at least a cut down copy), and manually add the results you expect to see. Clearly identify which is original data and which are the results and in a note clearly explain how you have arrived at your results.

    It's not clear to me whether the G:J table is your actual data and you are wanting to derive A:D. What you can't do is have formulae in column I which refer to the A:D columns and also have column C:D formulae which refer to columns G:J and NOT have a circular reference

  7. #7
    Registered User
    Join Date
    09-28-2014
    Location
    Osijek, Croatia
    MS-Off Ver
    2013
    Posts
    5

    Re: Vookup circular reference problem

    Quote Originally Posted by jason.b75 View Post
    Try this in C3 and fill down

    =VLOOKUP(A3,A$2:C2,3,FALSE)

    Initially it will show a column of #N/A errors, when you override the first one with an actual price, it will clear all errors for the same item.

    Is that what you wanted?
    Thank you very much. This is exactly what I have been looking for.
    There is no more circular reference. I will test is on a few actual data and let you know. But I think this is it.

+ 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 problem, help
    By bugdout in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-02-2017, 05:33 PM
  2. Circular Reference Problem
    By Nifty62 in forum Excel General
    Replies: 4
    Last Post: 06-27-2014, 04:02 PM
  3. [SOLVED] Circular Reference problem
    By jontherev in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-08-2014, 08:19 PM
  4. Circular Reference Problem
    By cpmsimoes in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2014, 06:21 AM
  5. [SOLVED] Circular reference problem
    By niklas24 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 05-28-2013, 04:26 PM
  6. Circular Reference Problem
    By neelpatel in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-25-2012, 10:55 AM
  7. Problem with Circular Reference
    By Paul M in forum Excel General
    Replies: 1
    Last Post: 02-14-2006, 09:45 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