+ Reply to Thread
Results 1 to 9 of 9

If Then Formula

Hybrid View

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

    I create a sheet for the first one, VEAM

    Formula in A3:

    =IF(ROWS($B$1:$B1)>COUNTIF(Sheet1!$C$2:$C$43,$B$1),"",INDEX(Sheet1!$B$2:$B$43,SMALL(IF(Sheet1!$C$2:$C$43=$B$1,ROW(Sheet1!$B$2:$B$43)-6-ROW(Sheet1!$B$2)+1),ROWS($B$1:$B1))))
    Formula in B3:

    =IF(ROWS($B$1:$B1)>COUNTIF(Sheet1!$C$2:$C$43,$B$1),"",INDEX(Sheet1!$B$2:$B$43,SMALL(IF(Sheet1!$C$2:$C$43=$B$1,ROW(Sheet1!$B$2:$B$43)-3-ROW(Sheet1!$B$2)+1),ROWS($B$1:$B1))))
    Both formulas are confirmed with CTRL+SHIFT+ENTER not just ENTER.

    Then copy them down as far as you want

    You can then make copies of this sheet and just change the reference in B1 to the appropriate Center.

    I changed the Second center in the main sheet to VEAM for test... you can change it back if it was real.

    Btw: What happened to your other username?
    Attached Files Attached Files
    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.

  2. #2
    Registered User
    Join Date
    11-06-2008
    Location
    Syracuse, NY
    Posts
    29
    I am having some trouble taking the formulas you created and implementing them into my sheet.

    The worksheet my data is in is named: Nov Data

    I have data down to line 1043.

    So would not the formula look like the following:

    =IF(ROWS($B$1:$B1)>COUNTIF(NOV Data!$C$2:$C$1043,$B$1),"",INDEX(NOV Data!$B$2:$B$1043,SMALL(IF(NOV Data!$C$2:$C$1043=$B$1,ROW(NOV Data!$B$2:$B$1043)-3-ROW(NOV Data!$B$2)+1),ROWS($B$1:$B1))))

    When I enter the above and click CTRL+SHIFT+ENTER I get a pop up box that says: Update Values: Data

    What am I doing incorrectly?

+ 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