+ Reply to Thread
Results 1 to 6 of 6

I need to count the number of weeks between the first and last data including empty cells

Hybrid View

  1. #1
    Registered User
    Join Date
    02-01-2016
    Location
    PDX
    MS-Off Ver
    ???
    Posts
    3

    I need to count the number of weeks between the first and last data including empty cells

    Wk1 wk2 wk3 wk 4 wk 6 wk7 wk8 wk9 wk10 wk11 wk12 wk13
    33 55 55 23 87 66 55
    3 18 19 16 1

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: I need to count the number of weeks between the first and last data including empty ce

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,597

    Re: I need to count the number of weeks between the first and last data including empty ce

    By empty cells do mean, for example, Wk3 could be blank?

  4. #4
    Registered User
    Join Date
    02-01-2016
    Location
    PDX
    MS-Off Ver
    ???
    Posts
    3

    Re: I need to count the number of weeks between the first and last data including empty ce

    Yes. The formatting on what I sent was horrible.

    Data can start in different weeks. It can have an entry and then miss a few, etc... I just need to be able to count the number of weeks that a student has been getting services from the first data point to the last. So I have to be able to count the blanks also after the first data bit until the last data bit.

    Make sense?

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,597

    Re: I need to count the number of weeks between the first and last data including empty ce

    With data in A2 to L2 (blanks in random columns) Weeks 1 to 12

    First week:

    =MATCH(INDEX(A2:L2,MATCH(TRUE,INDEX(A2:L2<>0,),0)),A2:L2,0)

    Last week:

    =MAX(IF(A2:L2=LOOKUP(9.99999999999999E+307,A2:L2),COLUMN(A:L)))

    Enter with Ctrl+Shift+Enter

  6. #6
    Registered User
    Join Date
    02-01-2016
    Location
    PDX
    MS-Off Ver
    ???
    Posts
    3

    Re: I need to count the number of weeks between the first and last data including empty ce

    Thanks. It works. I appreciate the help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 10
    Last Post: 09-26-2015, 08:26 PM
  2. [SOLVED] How to count the number of cells including data that are next to one another
    By timothy040888 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-24-2015, 10:07 AM
  3. Replies: 2
    Last Post: 04-13-2015, 08:32 PM
  4. [SOLVED] Count number of holidays depending on number of weeks
    By ANTH16 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2013, 03:42 AM
  5. Replies: 2
    Last Post: 07-25-2013, 01:01 PM
  6. Count the number of cells in a range that are not empty
    By efernandes67 in forum Excel General
    Replies: 5
    Last Post: 07-23-2010, 05:41 AM
  7. count them number of cells between values -2 and 2 including 0
    By Helppppppppppppppppppppppppppppp in forum Excel General
    Replies: 2
    Last Post: 03-28-2006, 02:45 AM

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