+ Reply to Thread
Results 1 to 12 of 12

adjusting formula, after data order reversed

  1. #1
    Forum Contributor
    Join Date
    05-13-2009
    Location
    London, England
    MS-Off Ver
    Excel XP
    Posts
    174

    adjusting formula, after data order reversed

    Hi guys,

    Domenic helped me out earlier with a formula. I'm trying to adjust it as i've changed the order of Data in the column

    Previously the column was arranged so that the most recent data appeared on the top of the column. Now most recent data is at bottom of column.

    The formula given to me was:

    =COUNTIF(B2:INDEX(B2:B1356,MATCH(0,B2:B1356,0)),"<0")

    how do I make the adjustment? Thanks
    Last edited by Pasha81; 10-27-2009 at 09:45 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: adjusting formula, after data order reversed

    You mean you want to count from the bottom up.. how many negative numbers up to the first 0 from the bottom?

    If yes.

    =COUNTIF(INDEX(B2:B1356,MATCH(0,B2:B1356,0)):B1356,"<0")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    05-13-2009
    Location
    London, England
    MS-Off Ver
    Excel XP
    Posts
    174

    Re: adjusting formula, after data order reversed

    here's a file, you're right i need it to check bottom to top the most recent negative streak heading up to 0...the answer should also be 344 like the other 2..........

    This formula is basically calculating days in current drawdown, If the most recent cell is 0, then answer is 0, if most recent cell(bottom most) is negative then count upwards the number of cells till u get a 0(but dont count the 0)

    thanks
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: adjusting formula, after data order reversed

    Try:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER

  5. #5
    Forum Contributor
    Join Date
    05-13-2009
    Location
    London, England
    MS-Off Ver
    Excel XP
    Posts
    174

    Re: adjusting formula, after data order reversed

    thanks NBVC

    but it doesnt work
    getting error mesg, says ive entered too few arguments for function

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: adjusting formula, after data order reversed

    See cell G4:
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    05-13-2009
    Location
    London, England
    MS-Off Ver
    Excel XP
    Posts
    174

    Re: adjusting formula, after data order reversed

    this is how i changed it in my worksheet and it doesnt work

    =COUNTIF(INDEX(Drawdown1,MATCH(2,1/Drawdown1=0))):INDEX(Fund1!$G:$G,lrow,"<0")


    It doesnt recognize anything after the third bracket right next to 1/Drawdown1=0)))

    i dont understand why, it works in the file i attached

  8. #8
    Forum Contributor
    Join Date
    05-13-2009
    Location
    London, England
    MS-Off Ver
    Excel XP
    Posts
    174

    Re: adjusting formula, after data order reversed

    Drawdown figures are in Column G in my version

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: adjusting formula, after data order reversed

    a couple of misplaced/missing parantheses....

    This is what it should be:

    =COUNTIF(INDEX(Drawdown1,MATCH(2,1/(Drawdown1=0))):INDEX(Fund1!$G:$G,lrow),"<0")

  10. #10
    Forum Contributor
    Join Date
    05-13-2009
    Location
    London, England
    MS-Off Ver
    Excel XP
    Posts
    174

    Re: adjusting formula, after data order reversed

    thanks buddy, it works great now!!

  11. #11
    Forum Contributor
    Join Date
    05-13-2009
    Location
    London, England
    MS-Off Ver
    Excel XP
    Posts
    174

    Re: adjusting formula, after data order reversed

    wow, helped from good ole mississauga, i went to UTM!

  12. #12
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: adjusting formula, after data order reversed

    .. and me to UT St.George Campus....

+ 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