+ Reply to Thread
Results 1 to 5 of 5

Count cells with assigned value

  1. #1
    Registered User
    Join Date
    09-09-2008
    Location
    Gothenburg, Sweden
    Posts
    3

    Count cells with assigned value

    I'm trying to figure out how to make my excel sheet work smoother while calculating the rating between my friends in poker.

    First, I would like to know if there is a way to calculate which cells have numerical values assigned to them.

    For example, if A1=53, B1=26 and E1=88 while C1 and D1 has not assigned value, I'd like F1=3 because of A1, B1 and E1 has numerical values. If it's possible, F1=3 even if C1 or/and D1 has a non numerical value like "new" or "[-]".

    ---

    Second, I'm looking for something that does sort of the opposite. There is a punishment for not taking part in the latest pokertournaments so if the latest competition is represented by column "S". For example, I want X1=2 if the latest column in row 1 to be assigned a value is column Q (as the only non-assigned cells until column S is R1 and S1). If the last assigned value instead is in M1 then X1=6. I know this must sound weird, but is there way to do such a thing?

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    For your first question you could use something like this

    =COUNTIF(A1:E1,">0")

    You will need to explain the second question more clearly - I don't understand it so far sorry
    Last edited by oldchippy; 09-09-2008 at 11:57 AM. Reason: Edit range
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    09-09-2008
    Location
    Gothenburg, Sweden
    Posts
    3

    Thumbs up

    Great, that was very helpful and worked perfectly! Thank you

    Sorry I confused you with the second one, I didn't even understand myself after I wrote it. I attached a file to see if it can make it more understandable...
    Attached Images Attached Images

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    Are you saying that you want to count the blanks in the range Jan:Jun for each row, but only if there are numbers followed by blank cells. If there are numbers, blank cells, then numbers again then a zero is the score?

  5. #5
    Registered User
    Join Date
    09-09-2008
    Location
    Gothenburg, Sweden
    Posts
    3
    Yep, that's exactly what I was aiming at

+ 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. Count including Blank Cells
    By bhofsetz in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-17-2015, 02:11 PM
  2. count the number of members in cells seperated by ;
    By wali in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-23-2008, 01:46 PM
  3. Count blank cells within a range not including fully blank rows
    By twofootgiant in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 07-16-2008, 09:43 AM
  4. count contiguous cells that are identical?
    By dlh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2008, 04:37 PM
  5. How To Use The Count Function Like This?
    By atech in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2008, 11:36 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