+ Reply to Thread
Results 1 to 7 of 7

Counting number based on cells that have value

  1. #1
    Forum Contributor
    Join Date
    03-13-2014
    Location
    Kansas City, Missouri
    MS-Off Ver
    Excel 2013
    Posts
    125

    Counting number based on cells that have value

    So based on a formula Jonmo gave me, I'm needing to count if there's data in 4 cells... this is a little confusing, so I'll show rather than tell.

    =IF(A6=A5,"",INDEX(MMDDYYYY!B:B,(CEILING(ROWS($1:4)/7,1)-1)*49+15))

    This, however, currently isn't what I need - it's just returning the value in B15. What I want is for this cell to count whether there's something in these 4 cells, and output a number between 1-4.

    So for example, right now.. B15 has John in it, and B16 has Aaron, but B17 and Be18 are empty.

    Therefore, it should return a 2, because there's a value in B15 and B16.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: Counting number based on cells that have value

    You should follow this one:
    http://www.excelforum.com/excel-form...heet-help.html
    to help people to see the whole picture.
    BTW, try to post a sample to get quick and better help
    Quang PT

  3. #3
    Forum Contributor
    Join Date
    03-13-2014
    Location
    Kansas City, Missouri
    MS-Off Ver
    Excel 2013
    Posts
    125

    Re: Counting number based on cells that have value

    I guess I don't know what you mean/how to follow? I presume that's some linking method, but I'm not familiar enough with the forum to know how that works.

    I'll try to create an example to post. Give me a few moments.

  4. #4
    Forum Contributor
    Join Date
    03-13-2014
    Location
    Kansas City, Missouri
    MS-Off Ver
    Excel 2013
    Posts
    125

    Re: Counting number based on cells that have value

    Excel Overnight help.xlsx

    Note that I kept all data in the appropriate locations, so there is more data down the MMDDYYYY lines, past what is seen on the first page.

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: Counting number based on cells that have value

    How about in D6:

    =IF(A6=A5,"",SUMPRODUCT(--ISTEXT(OFFSET(MMDDYYYY!$B$15:$B$18,MAX(INT((ROW(A1)-1)/7)*49),))))

    Drag down

  6. #6
    Forum Contributor
    Join Date
    03-13-2014
    Location
    Kansas City, Missouri
    MS-Off Ver
    Excel 2013
    Posts
    125

    Re: Counting number based on cells that have value

    That worked, Bebo! It totally destroyed something else, but I think I can fix that. Appreciate it, sir! For future reference... How do I follow another thread, like you suggested? Or were you just linking for any other readers?

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: Counting number based on cells that have value

    Nice to hear it works.
    I have seen your first thread with Jonmo's help so I can understand the story, but the other helpers may not.
    So you can follow that thread with 2nd raising request, or at least, in this new thread, give a link to first thread by copy/paste the URL.

+ 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. [SOLVED] Counting number of non blank cells based on contents of diferent range
    By icyoung in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-14-2013, 12:14 PM
  2. Counting the number of empty cells based on a condition in a range
    By naga in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-01-2013, 10:01 AM
  3. counting based ona number of variables.
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 09-06-2005, 07:05 AM
  4. counting based ona number of variables.
    By vipa2000 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  5. [SOLVED] counting based ona number of variables.
    By vipa2000 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

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