+ Reply to Thread
Results 1 to 11 of 11

Can't make a cell absolute when referenced to another worksheet?

  1. #1
    Registered User
    Join Date
    03-06-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    4

    Lightbulb Can't make a cell absolute when referenced to another worksheet?

    Hi. I'm been searching for an answer to this problem for days, can someone please help me out. I would greatly appreciate it!

    To keep it simple, this is what I'm basically trying to accomplish. I have two sheets, say Sheet1 and Sheet2.

    On Sheet1 I have an IF statement. =IF(Sheet2!C5="OK","OK","-"). This works well, however, when I put a new row in Sheet2, it adjusts the C5 formula in my Sheet1 formula to C6.

    I want the formula in Sheet1 to always stay referenced to cell C5 on Sheet2.

    So I learned that I can use $ to make absolute references. But for some strange reason, Sheet2!$C$5 / Sheet2!C$5 / Sheet2!$C5 are all failing to accomplish this.

    I don't understand what I'm doing wrong. Can someone please help me out. Thanks!
    Last edited by jack.k; 03-06-2012 at 09:29 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: Can't make a cell absolute when referenced to another worksheet?

    Hi and welcome to the forum

    This, must work for you.

    =IF(Sheet2!$C$5="OK","OK","-")
    Attached Files Attached Files
    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
    Registered User
    Join Date
    03-06-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Can't make a cell absolute when referenced to another worksheet?

    Hi Fotis, thanks for the welcome!

    Thank you for the sheet example, but it still does not work. If you go into Sheet2 and put a new row anywhere above, and go back to Sheet1, the formula changes to =IF(Sheet2!$C$6="OK","OK","-")

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Can't make a cell absolute when referenced to another worksheet?

    Maybe this is what you want?

    =IF(INDEX(Sheet2!C:C,5)="OK","OK","-")

  5. #5
    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: Can't make a cell absolute when referenced to another worksheet?

    ..Yes, you are right...

    So try, this.

    =IF(INDIRECT("Sheet2!C5")="OK","OK","-")


    Is this, OK, for you?

  6. #6
    Forum Contributor
    Join Date
    12-28-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    280

    Re: Can't make a cell absolute when referenced to another worksheet?

    You could alternatively use INDIRECT:

    =IF(INDIRECT("Sheet2!C5")="OK","OK","-")

  7. #7
    Registered User
    Join Date
    03-06-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Can't make a cell absolute when referenced to another worksheet?

    The formula using Indirect works! Thank you so very much!!

    I never heard of Indirect before.

  8. #8
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Can't make a cell absolute when referenced to another worksheet?

    INDIRECT() is a volatile function and, as such, shouldn't be used when non-volatile options are available.

  9. #9
    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: Can't make a cell absolute when referenced to another worksheet?

    You are welcome.Glad to helped you.

    I have to tell you, that also Cutter's formula, works great in this case.

  10. #10
    Registered User
    Join Date
    03-06-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Can't make a cell absolute when referenced to another worksheet?

    Actually, Cutter's formula using INDEX although confusing turned out to be better. With INDIRECT I kept on getting prompts to save the file when there weren't any changes. I guess this is what is meant by volatile. Thanks again for the help guys!

    Edit: How do I mark a thread as solved?
    Last edited by jack.k; 03-06-2012 at 09:20 PM.

  11. #11
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Can't make a cell absolute when referenced to another worksheet?

    To mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes.
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

+ 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