+ Reply to Thread
Results 1 to 10 of 10

HELP!! DCOUNTA, ISBLANK and LEN

  1. #1
    Registered User
    Join Date
    02-18-2014
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    57

    HELP!! DCOUNTA, ISBLANK and LEN

    Hi all,

    I need to calculate in the H6 cell the number of orders in which the postcode is not available, by using the DCOUNTA database function. I got a task to use DCOUNTA and not a COUNTBLANK function...
    In criterion I may either use the ISBLANK function or look for the text with a zero length by using the LEN function.


    Please help...

    File attached.

    addresses.xlsx

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: HELP!! DCOUNTA, ISBLANK and LEN

    Hi,

    One way in H3

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  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,152

    Re: HELP!! DCOUNTA, ISBLANK and LEN

    For post code the formula should be :

    =COUNTBLANK(OFFSET($A$1,0,3,COUNTA(A:A),1))

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: HELP!! DCOUNTA, ISBLANK and LEN

    Or this (which does use DCOUNTA)

    =COUNTA(A:A)-(DCOUNTA(A1:F30,D1,D2:D30)+1)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    02-18-2014
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: HELP!! DCOUNTA, ISBLANK and LEN

    It should be something like =DCOUNTA(A1:F30,C1,H2:H3) with criteria in H2:H3 is =ISBLANK($C$2)

    but it gives me non-blanks. it should give me blanks as criteria true is for blanks. that's the confusion.. i must be doing a very small silly mistake in here.

  6. #6
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: HELP!! DCOUNTA, ISBLANK and LEN

    Hi

    Try this

    Please Login or Register  to view this content.
    and in criteria H10:H11

    =""

    See attached
    Attached Files Attached Files
    Last edited by mahju; 06-02-2015 at 07:31 AM.
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

  7. #7
    Registered User
    Join Date
    02-18-2014
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: HELP!! DCOUNTA, ISBLANK and LEN

    Thanks everyone, but it still doesn't give me a correct answer

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: HELP!! DCOUNTA, ISBLANK and LEN

    Hi,

    You have several answers. Which one are you saying doesn't give you the correct answer?
    Upload the workbook so that we can check that you have correctly implemented one of the suggestions given.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: HELP!! DCOUNTA, ISBLANK and LEN

    Perhaps this - where H2 is an array formula... entered with CTRL-SHIFT-ENTER
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: HELP!! DCOUNTA, ISBLANK and LEN

    Hi

    Use this

    Please Login or Register  to view this content.
    Leave H11 blank

    Regards
    Attached Files Attached Files

+ 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. Excel 2007 : DCOUNTA or a better formula
    By jkap in forum Excel General
    Replies: 1
    Last Post: 05-15-2012, 05:40 PM
  2. Help with ISBLANK function referring to a cell with another ISBLANK formula
    By camdameron in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-23-2011, 12:45 PM
  3. DCOUNT or DCOUNTA
    By halrifai in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-25-2010, 10:55 AM
  4. Using DCOUNTA where 2 conditions must be met
    By ScottishDanny in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-27-2007, 09:25 AM
  5. DCOUNTA question
    By Iamkar33m in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-11-2007, 04:10 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