+ Reply to Thread
Results 1 to 9 of 9

IF AND forumla is giving me a circular ref error

  1. #1
    Forum Contributor
    Join Date
    05-20-2009
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    148

    IF AND forumla is giving me a circular ref error

    Hi guys,

    I'm using an excel forumla to scan column A of a sheet and bring a number over from it if it has the word "DOC" in front of it. The column that I want these to appear in sometimes has a number in it already so I want excel to use this formula
    =IF(LEFT(A2,3)="DOC",MID(A3,6,12),"")
    but only when the cell in column B it's pasting into is blank. So i'm trying to include AND(B2<>"") somewhere in there so it does nothing if there's something there already.

    Can anyone help with this?

    Cheers,
    Manolis
    Last edited by controlfreak; 10-04-2012 at 12:08 PM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF AND problem

    Manolis, do you mean?

    =IF(B2="","",IF(LEFT(A2,3)="DOC",MID(A3,6,12),"")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor
    Join Date
    05-20-2009
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    148

    Re: IF AND problem

    Router sample 1.xlsx
    Quote Originally Posted by Fotis1991 View Post
    Manolis, do you mean?

    =IF(B2="","",IF(LEFT(A2,3)="DOC",MID(A3,6,12),"")
    Hi Fotis!

    Tee Kanis? Kala?

    That didn't work for me I'm afraid, I don't know why as that's exactly what I want it to do.
    Please see the sheet attached any maybe you could see why it's not working?

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF AND problem

    Manoli, kita afto(Look at this)

    =IF(B1="","",IF(LEFT(A1,3)="DOC",MID(A1,7,12)))

  5. #5
    Forum Contributor
    Join Date
    05-20-2009
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    148

    Re: IF AND forumla is giving me a circular ref error

    That still doesn't seem to work for me Fotis,

    I either get a circular ref warning or it brings everything up as a zero.
    Last edited by controlfreak; 10-04-2012 at 11:33 AM.

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF AND forumla is giving me a circular ref error

    See this, my friend.

    What do you say about?
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    05-20-2009
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    148

    Re: IF AND forumla is giving me a circular ref error

    Kali mera Fotis!

    That isn't exactly what I need. I need the forumula to be in column B so that it drags the number over from A but ignores anything that is already in B.

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF AND forumla is giving me a circular ref error

    Kalimera Manolis.

    I am sorry but i don't think that you can do this using formula.

    In a cell you can have either a formula or a nalue(or text). Not both of these.

    Maybe with VBA, but in this case i am not able to help you.

  9. #9
    Forum Contributor
    Join Date
    05-20-2009
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    148

    Re: IF AND forumla is giving me a circular ref error

    Efkharisto poli Fotis,

    Thank you for your help!

+ 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