+ Reply to Thread
Results 1 to 5 of 5

Who knows the easiest path

  1. #1
    Registered User
    Join Date
    08-21-2006
    Posts
    5

    Who knows the easiest path



    I've accomplished the task below with many long and difficult formulas. In "difficult" I mean trying to explain step by step procedures in building this spreadsheet to an excel novice. Does anyone know of a simple formula that will get these results without using a macro? There is always an easier way of doing things, escpecially in excel.
    Attached Files Attached Files

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Is this formula to long ??


    =IF(ROW()-ROW(C$2)+1>COUNTIF($A$2:$A$10,"Apples"),"",INDEX($A$2:$A$10,MATCH("Apples",$A$2:$A$10,0)))

    File attached here

    http://cjoint.com/?iAxscAE57h

    VBA Noob

  3. #3
    Registered User
    Join Date
    08-21-2006
    Posts
    5
    No, not too long at all. Thank you very much.

  4. #4
    Registered User
    Join Date
    08-26-2006
    Posts
    1
    Quote Originally Posted by VBA Noob
    Is this formula to long ??


    =IF(ROW()-ROW(C$2)+1>COUNTIF($A$2:$A$10,"Apples"),"",INDEX($A$2:$A$10,MATCH("Apples",$A$2:$A$10,0)))

    File attached here

    http://cjoint.com/?iAxscAE57h

    VBA Noob
    Not sure of the purpose of the formula but the "ROW(C$2)+1" bit will always be 1 - so yes it is too long

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Your right

    Could be shorten to

    =IF(ROW(C1)>COUNTIF($A$2:$A$10,"Apples"),"",INDEX($A$2:$A$10,MATCH("Apples",$A$2:$A$10,0)))

    VBA Noob

+ 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