+ Reply to Thread
Results 1 to 14 of 14

Help with OFFSET

  1. #1
    Registered User
    Join Date
    02-02-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    16

    Help with OFFSET

    Hi,

    My column A has titles in it and my first column with numbers is coulmn B. One of my rows has this in it: =IFERROR(OFFSET(C16,0,-$J8),0)

    The problem is, one cell always has the text from column A in it because it is pointing back to A. Is there any way to not only make any error 0, but also any text? Or any other suggestions?

    Thanks,
    Josh

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Help with OFFSET

    Not clear enough to me... can you upload a sample workbook ? thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    02-02-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Help with OFFSET

    It is attached you can look at cell C32. I really appreciate anyone's help to figure out how to get rid of the number and have a 0 appear instead.

    Thanks!
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-02-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Help with OFFSET

    Can someone help please!! I am so lost and need this for tomorrow. Thanks so much.

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Help with OFFSET

    what do you want to return with the offset? its reference to A as you said is there a posibility for a numeric value in A
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  6. #6
    Registered User
    Join Date
    02-02-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Help with OFFSET

    I want it to return 0.

    Thank you SO much.

  7. #7
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Help with OFFSET

    maybe with an If statement
    this will check if the offset is text --if offset is text return 0 otherwise return offset value is this what you want?

    =IFERROR(IF(ISTEXT(OFFSET(C16,0,-$J8)),0,OFFSET(C16,0,-$J8)),0)

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help with OFFSET

    The formula in C32 correctly returns the entry from cell A16 based on the arguments in the formula.

    I'm guessing that you are expecting some other result? You say you want it to return 0. So when should the formula return 0 and when should it return something else?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help with OFFSET

    Maybe this:

    =IFERROR(1/(1/OFFSET(C16,0,-$J8)),0)

  10. #10
    Registered User
    Join Date
    02-02-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Help with OFFSET

    That worked, thank you so much.

    Just to try and better understand your suggestion - why did you have to repeat the formula twice? Why doesn't it just work like =IFERROR(IF(ISTEXT(OFFSET(C16,0,-$J8)),0,)

  11. #11
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Help with OFFSET

    Use Tony's formula shorter and much more effective

  12. #12
    Registered User
    Join Date
    02-02-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Help with OFFSET

    Thanks both of you. Tony - I was hoping you might explain why your formula works (which it does!) and what the 1/ means.

    Thanks.

  13. #13
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help with OFFSET

    You seem to be expecting a numeric result from the OFFSET function.

    We can say that 1 divided by 1 divided by some number will always equal that number. For example:

    1/(1/10) = 10

    However, the OFFSET formula is returning a text string so we get:

    1/(1/"text") = #VALUE!

    We use the IFERROR function to replace the #VALUE! error with a result of 0.

    If the result of the OFFSET just happens to be 0 then we get the same result in a different way:


    1/(1/0) = #DIV/0!

    We use the IFERROR function to replace the #DIV/0! error with a result of 0.

  14. #14
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Help with OFFSET

    Another one...

    =IFERROR(N(OFFSET(C16,,-$J8)),0)

+ 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