+ Reply to Thread
Results 1 to 7 of 7

Count cells when data is retrieved by a formula

  1. #1
    Registered User
    Join Date
    01-20-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    19

    Count cells when data is retrieved by a formula

    Hi everyone,

    I have an excel sheet where most of the filling in is done by formulas.
    For example I have one general entry list and all other will retrieve their info from this list.

    Downside for me if I want to do a count of filled in cells it does show me also the counts for the blank cells because they all contain a formula.
    Is there a way around this while keeping the formulas?

    The same issue occurs when sorting a column with formula filled values.

    My question is if it's possible to do a count or sort based not on the actual values but on the displayed cell values?

    Thanks for helping me out.

  2. #2
    Valued Forum Contributor PaulSP8's Avatar
    Join Date
    11-21-2017
    Location
    Chorley, England
    MS-Off Ver
    2013 & 2021
    Posts
    437

    Re: Count cells when data is retrieved by a formula

    You'd be better attaching a Sample workbook (see the big yellow banner for instructions) on this as it sounds as though it's something with multiple solutions and a better understanding of what you're looking at would be hugely beneficial

  3. #3
    Registered User
    Join Date
    01-20-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    19

    Re: Count cells when data is retrieved by a formula

    Yes was still working on the file to have it as complete as possible.

    In the attachment the exaple file.
    The first orange tab shows in red what I would like it to do.
    Attached Files Attached Files

  4. #4
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Count cells when data is retrieved by a formula

    1) for your count formula try:

    =COUNTA(B2:B41)-COUNTIF($B$2:$B$41,"")

    2)I am not to certain what you are asking for when it comes to sorting?


    3) Tab names can automatically change to values from your Schema sheet if you use a Macro. This is the only way to have it done automatically.
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  5. #5
    Registered User
    Join Date
    01-20-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    19

    Re: Count cells when data is retrieved by a formula

    Thanks for the tips I will try them out.

    I need to sort them based on a result at the "Gewicht" column so all columns are sorted based on those values.
    Only because of the cells containing a formula they won't sort on the displayed value but on the formula which does not work as I expect it to.

  6. #6
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Count cells when data is retrieved by a formula

    for the sorting can't you click on the filter you have in C1 and Select "SORT LARGEST TO SMALLEST" and this will sort by Gewicht for you?

  7. #7
    Registered User
    Join Date
    01-20-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    19

    Re: Count cells when data is retrieved by a formula

    Brilliant the count is working just fine. I think I overlooked this counting with the ""value.

    Thanks a million

+ 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: 13
    Last Post: 08-29-2017, 10:09 AM
  2. Replies: 3
    Last Post: 10-16-2014, 07:02 AM
  3. Get External Data from Web - Batch request - skip if no data is retrieved from webpage
    By cooper.1651 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-18-2014, 12:44 PM
  4. Retrieving data from MS SQL to update previously retrieved data.
    By Rkhader in forum Access Tables & Databases
    Replies: 9
    Last Post: 03-15-2013, 11:18 AM
  5. only run autoexec macro once data has been retrieved
    By qwertyjjj in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-25-2007, 02:31 PM
  6. [SOLVED] Multiple Queries, Qry 2 based on Data Retrieved from Qry 1
    By Glenda in forum Excel General
    Replies: 0
    Last Post: 02-13-2006, 06:10 PM
  7. Filter Count of Records Retrieved.
    By amkazen in forum Excel General
    Replies: 2
    Last Post: 03-31-2005, 05:06 PM

Tags for this Thread

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