+ Reply to Thread
Results 1 to 17 of 17

Excel 2007 : Formula returning last value needs few tweaks

  1. #1
    Forum Contributor spiros63's Avatar
    Join Date
    04-23-2012
    Location
    Voula Attikis - Greece
    MS-Off Ver
    Excel 2016
    Posts
    136

    Formula returning last value needs few tweaks

    Hi guys

    We are using a formula which returns the last value.
    In the uploaded file you'll see that it doesn't deliver the wishful return in 2 occasions.
    In the first occasion it's understandable because we don't know how to give the right command to ignore zeros. Here is where we need the first tweak.
    In the second occasion we don't have a clue, why it doesn't returns anything. Here probably we need more than 1 tweak, perhaps another approach.

    We would greatly appriciate any help
    Attached Files Attached Files
    Last edited by spiros63; 06-15-2012 at 05:10 AM.
    Happiness = (Consumption/Desire)

  2. #2
    Forum Contributor
    Join Date
    07-24-2009
    Location
    Valrico, FL USA
    MS-Off Ver
    Excel 2016
    Posts
    358

    Re: Formula returning last value needs few tweaks

    The last few cells in column O & P contain zeros.
    The cells have conditional formatting applied to have the font color white if there is a zero value.
    If you select the last few cells in column O & P, you will see the zeros.

  3. #3
    Forum Contributor spiros63's Avatar
    Join Date
    04-23-2012
    Location
    Voula Attikis - Greece
    MS-Off Ver
    Excel 2016
    Posts
    136

    Re: Formula returning last value needs few tweaks

    @mcmay

    This worksheet has been made by me.
    I'm the one who applied those formattics.
    So I know what the worksheet contains.
    What I'm seeking, is help to overcome the bellow difficulties
    The first question is : how to modify the formula in order to ignore the zeros contained in ANY column (not only O&Pwhich are a very nice example)
    The second question is : what should I do to have the last value from column R (provided that the existing formula can't be modified for whatever reason in this column)

  4. #4
    Registered User
    Join Date
    06-11-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: Formula returning last value needs few tweaks

    Dear,


    I found the following error in cell b24

    =IFERROR(INDEX(#REF!,MATCH(#REF!&"_"&ROWS(#REF!),#REF!,0)),"")

    please check where it has been referred.

  5. #5
    Registered User
    Join Date
    06-11-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    86

    Thumbs up Re: Formula returning last value needs few tweaks

    Dear,

    check it
    is this what u are looking for

    Example.xlsx

  6. #6
    Forum Contributor spiros63's Avatar
    Join Date
    04-23-2012
    Location
    Voula Attikis - Greece
    MS-Off Ver
    Excel 2016
    Posts
    136

    Re: Formula returning last value needs few tweaks

    The uploaded worksheet is a small part of the actual.
    Those references don't matter, because they don't affect the outcome.
    I've checked.

    To understand what I'm saying please do this : erase the contained formulas from those cells (A24:B26)

  7. #7
    Forum Contributor spiros63's Avatar
    Join Date
    04-23-2012
    Location
    Voula Attikis - Greece
    MS-Off Ver
    Excel 2016
    Posts
    136

    Re: Formula returning last value needs few tweaks

    Quote Originally Posted by Md Aejaz View Post
    Dear,

    check it
    is this what u are looking for

    Attachment 162170
    Nope! it's not

    Once more
    Modification of the existing formula is what I'm looking for.
    The worksheet and its content has nothing to do with formula's failure in these specific columns

  8. #8
    Registered User
    Join Date
    06-11-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    86

    Thumbs up Re: Formula returning last value needs few tweaks

    Example.xlsx


    check it.
    their is some mistakes in those formulas.

  9. #9
    Forum Contributor spiros63's Avatar
    Join Date
    04-23-2012
    Location
    Voula Attikis - Greece
    MS-Off Ver
    Excel 2016
    Posts
    136

    Re: Formula returning last value needs few tweaks

    Are you sure ?

    I check. I didn't find anything except the -1 entered by you in O column formula.
    Can you show me please where are these "mistakes" ??????????/

  10. #10
    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: Formula returning last value needs few tweaks

    Σπύρο(Spiros)

    In O27

    =LOOKUP(2;1/(O3:O26>0);O3:O26)

    In P27

    =LOOKUP(2;1/(P3:P26>0);P3:P26)


    And i don't know, if you can live without Concatenate in R column. This is why your formula, does not work.
    In R3 and copy, until R26

    =IFERROR(SUM(J3/L3);"")

    Then your formula In R27, works.
    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.

  11. #11
    Forum Contributor spiros63's Avatar
    Join Date
    04-23-2012
    Location
    Voula Attikis - Greece
    MS-Off Ver
    Excel 2016
    Posts
    136

    Re: Formula returning last value needs few tweaks

    For the first 2 formulas
    Thanks a lot my friend.

    BRAVO Fotis !
    Neat and efficient solution.

    About the third formula we have a significant issue
    In R column the format has to be kept because is the format of ratio.

    Can you do something about it ?
    Attached Images Attached Images

  12. #12
    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: Formula returning last value needs few tweaks

    Maybe we can use the "back" door my friend.

    What i mean is this.

    In X3 and copy down to X26, use this.

    =IFERROR(ROUND(J3/L3;1);"")

    In X27, this.

    =IFERROR(INDEX(X3:X26;MATCH(10^99;X3:X26));"")

    Hide this helper column.

    Now, in R27, put this.

    =X27&":1"

  13. #13
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Formula returning last value needs few tweaks

    Your basic formulae are inconsistant with what you are trying to do.

    Have a look at the changes I have made in Columns Q:T, you can change the formulae to IFERROR(), I only have access to 2003 at present.

    1/. Use 10^99 to find last number, and Rept("z",255) to find the last text entry.
    2/. When errors are returned in numeric columns default to "" (Null String)
    3/. When errors are returned in text columns default to 0 (Number zero), format the columns to suppress zeros if you wish.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  14. #14
    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: Formula returning last value needs few tweaks

    @ Marcol

    I tried with "and Rept("z",255)", but i did not the correct format in R column.

    The details make the difference in our level...

    Nice job Marcol!

  15. #15
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Formula returning last value needs few tweaks

    @ Fotis1991
    Did you change the formula in R3 to
    Please Login or Register  to view this content.
    or for 2007 and above ...
    Please Login or Register  to view this content.
    Drag/Fill Down to R26, then format the range R2:R26
    Number format > Custom
    Type:=
    Please Login or Register  to view this content.
    Then R27 becomes
    Please Login or Register  to view this content.
    or for 2007 and above ...
    Please Login or Register  to view this content.

  16. #16
    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: Formula returning last value needs few tweaks

    What i mean is,that i tried to solve the problem using this function(before my post 12 and your post 13) and i could not make this to work, because i did not even thouqht to change the format in R column....

    Your solution is great and (for me), works like a charm!

  17. #17
    Forum Contributor spiros63's Avatar
    Join Date
    04-23-2012
    Location
    Voula Attikis - Greece
    MS-Off Ver
    Excel 2016
    Posts
    136

    Re: Formula returning last value needs few tweaks

    About Fotis I already said what I had to say.

    About Marcol ....

    Simply....

    Attached Images Attached Images

+ 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