+ Reply to Thread
Results 1 to 5 of 5

count formula

  1. #1
    Forum Contributor
    Join Date
    06-27-2009
    Location
    montana,USA
    MS-Off Ver
    Excel 2007
    Posts
    190

    count formula

    I need help with a formula to count loads. The count in the load # column would start at 1 and only show up if there was data in the location column. The load # would be the same for rows that have the same # in the load column.
    the problem i'm having is when there is no data in the location column and i need the load number to pick up the next row with data and assign a number.
    In my sample the load # column would mirror the load column, but use a formula.



    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-27-2009
    Location
    montana,USA
    MS-Off Ver
    Excel 2007
    Posts
    190

    Re: count formula

    so far this works;
    =IF(D4=D5,B4,IF(C5<>"",MAX($B$4:B4)+1,""))

  3. #3
    Forum Contributor
    Join Date
    06-27-2009
    Location
    montana,USA
    MS-Off Ver
    Excel 2007
    Posts
    190

    Re: count formula

    the problem I have now is if the cells are blank. If D4=D5,B4 except if they are blank. thats what I need.
    please help. My brain's inop today!
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: count formula

    This work for you?

    =IF(AND(D4=D5,NOT(ISBLANK(D5))),B4,IF(C5<>"",MAX($B$4:B4)+1,""))

    Pauley

  5. #5
    Forum Contributor
    Join Date
    06-27-2009
    Location
    montana,USA
    MS-Off Ver
    Excel 2007
    Posts
    190

    Re: count formula

    yup!
    thanks

+ 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