+ Reply to Thread
Results 1 to 7 of 7

Circular reference

  1. #1
    Registered User
    Join Date
    05-23-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    3

    Circular reference

    I'm a total newbie to Excel (and this forum) and, in trying to create a very basic worksheet, I'm falling at the first hurdle. It's not quite as bad as all that as I've got all steps 3-8 all working to produce the required end result but it's what I'm trying to do at steps 1 and 2 (the data entry stage) that I am unable to find a solution for - it could be that I'm trying to put a round peg in a square hole and Excel simply won't do what I'm looking for. I'm hoping someone here might be able to enlighten me one way or the other.

    In rows A3 to A12 I have various different text categories e.g. drinks, food, household, frozen etc etc and then I want to be able to enter a two to four digit number in the corresponding B column. What I would then like to happen is that when I tab (or enter) out of that row/column, the value just entered is added to the corresponding C column and the B column is cleared to null again, ready for the next data entry. In essence it's akin to data entry on a calculator but with multiple rows.

    So in C3 I'd essentially like to have the formula =B3+C3 but that is a circular reference and not an option (plus it doesn't solve the 'nulling' of the B column on exit).

    I've waded through Excel 2010 for dummies to no avail.

    Is what I am trying to do even possible or do I need to approach it from another angle?

    Any thoughts would be greatly appreciated.

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Circular reference

    It looks to me to be a VBA solution, probably using sheet_change event or something similar, still working my way through VBA myself, but I'm pretty sure it is do-able, just not "simple"
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Circular reference

    Copy the below code and Do right click on sheet tab and select view code and paste it. Return to excel and check

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    05-23-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Circular reference

    Quote Originally Posted by :) Sixthsense :) View Post
    Copy the below code and Do right click on sheet tab and select view code and paste it. Return to excel and check

    Please Login or Register  to view this content.
    Problem solved - worked first time. Thanks very, very much - you've just saved me a huge amount of time and an awful lot of hair.

    If I want to extend this to having data entry in columns B3 and C3 with B3's total going into D3 and C3's total going into E3, how would this affect the code you gave me?

    Also, unless I've missed it (entirely possible) there appears to be precious little about VBA in Excel for Dummies. In days long past I used to be a Cobol/Basic programmer so I could probably teach myself the necessary coding - could you recommend any reference sources?

    Again - many thanks for your help.

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Circular reference

    Thanks for the feedback and Slight change in the suggested code

    Please Login or Register  to view this content.
    Please go through the below link for Books by John Walkenbach
    http://spreadsheetpage.com/index.php/books

  6. #6
    Registered User
    Join Date
    05-23-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Circular reference

    Brilliant - works a treat. I am most grateful and most definitely owe you a beer or three!

    Thanks also for your book suggestion(s), I think this should do the job.....

    http://spreadsheetpage.com/index.php..._for_dummies2/

    It appears I have rather more to learn than I'd expected when I embarked upon this!

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Circular reference

    Glad it helps you and 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)

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