+ Reply to Thread
Results 1 to 6 of 6

Create A Valid Circular Reference

  1. #1
    Forum Contributor
    Join Date
    04-06-2006
    Posts
    131

    Question Create A Valid Circular Reference

    Hey There,

    I have a tricky one here. In a nut shell, I think I am trying to create a valid circular reference.

    In Cell C102 is a list of peoples names and in D102 is a list of the employee numbers. What I am trying to set up is that if the user selects a name in C102, if populates the Employee Number in D102. If the Employee Number is entered, then it will populate the Employee Name on C102.

    I tried this first, which created a citrcular reference and crashed:
    Please Login or Register  to view this content.
    I thought something along these lines might work, but no good:
    Please Login or Register  to view this content.
    Any help would be greatley appreciated!!
    Thanx a million!!

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Create A Valid Circular Reference

    In the attached, the Named range LookupRange refers to A1:B5.
    NOTE: LookupRange must be sorted ascending on the second column, not the first.

    Entering a name in D2 will get the ID# put in E2
    Entering a number in E2 will put the matching name in D2

    Please Login or Register  to view this content.
    Attached Files Attached Files
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Contributor
    Join Date
    04-06-2006
    Posts
    131

    Re: Create A Valid Circular Reference

    You Rock! Thank you!!

    I changed it up to my ranges and tried it out and it is giving me a run time error 1004: Method 'Range' of object '_worksheet' failed. Did I maybe mess up my Range Defenitions?

    lur_Fis is defeind as:
    =FIS!$A$4:$E$25004

    And, this is what I have enterd in:
    Please Login or Register  to view this content.
    Am I doing something wrong?

    On the FIS Sheet, the Employee Name is in Column A and the Emplyee Number is in Column E
    Last edited by nevi; 04-07-2012 at 04:30 PM.

  4. #4
    Forum Contributor
    Join Date
    04-06-2006
    Posts
    131

    Re: Create A Valid Circular Reference

    Just realized I had a typo in the Range name. Corrected that (and above) but still getting the same error

  5. #5
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Create A Valid Circular Reference

    I assume this is happening all in the same workbook...hmm...and that the name lur_Fis is scoped workbook wide (this is Excel's default)....

    Try (similarly in the other line)
    Please Login or Register  to view this content.
    Also is lur_Fis sorted by column E? Ascending. If there are headers, it might be safer to exclude the header row from the named range.

  6. #6
    Forum Contributor
    Join Date
    04-06-2006
    Posts
    131

    Re: Create A Valid Circular Reference

    That (unfortunatley) wasn't doing the trrick either. I am sure there is some pertanient detail that I don't know is important and am therefore not saying here to make the difference. However, I figured it out!! Used a sort of happy medium between what I learned from your examples abouve and my original approach - works liek a charm!

    :D

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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