+ Reply to Thread
Results 1 to 6 of 6

IF formula turning up circular references

  1. #1
    Registered User
    Join Date
    03-24-2007
    Posts
    6

    IF formula turning up circular references

    im trying to use a formula that says IF (A1=1, B1=2) and apply is to the whole column of B, but it keeps saying that im doing a circular reference. I understand what the circular reference is but how do i do what im trying to do w/o getting one?

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by arpa
    im trying to use a formula that says IF (A1=1, B1=2) and apply is to the whole column of B, but it keeps saying that im doing a circular reference. I understand what the circular reference is but how do i do what im trying to do w/o getting one?
    Hi,

    you cannot put

    =If(B1=2

    into B1

    did you mean to say (in B1)

    =If(A1=1,2,"")

    or

    =A1+1

    ?
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Registered User
    Join Date
    03-24-2007
    Posts
    6
    this is what i want to do:

    A B

    3
    1
    4
    1

    =IF(A1=1, B1=2)

    so that it will look like this

    A B

    3
    1 2
    4
    1 2

    is this possible?

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try

    =IF(A1=1, 2,"")

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  5. #5
    Registered User
    Join Date
    03-24-2007
    Posts
    6
    that works. however, when im trying to add more formulas like =IF(A1=1,2)(A1=2,3), i get an error.

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    This link might help explain. However looks like the choose function might be better for you.

    Choose function

    http://www.lqnet.com/excel/choose.asp

    Note you can only nest up to seven if statements. However link 2 and 3 show workarounds

    If statementshttp://www.techonthenet.com/excel/fo.../if_nested.php

    http://www.cpearson.com/excel/nested.htm

    http://www.j-walk.com/ss/excel/usertips/tip080.htm

    http://www.usd.edu/trio/tut/excel/adv/26if.html

    VBA Noob

+ 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