+ Reply to Thread
Results 1 to 3 of 3

Thread: Function Help Please

  1. #1
    Registered User
    Join Date
    04-21-2006
    Posts
    3

    Function Help Please

    I have a worksheet it has one column labeled premier. It can be either a "P" or "N". That column is D. Then i have another column E labeled PPO. It can be either "Y" or blank "".

    I need a function if:

    If column D is "N" and Column E is "" (blank) add all of these up to a number.

    I tried the function:

    Countif(D2:d9883="N")and(Countif(e2:e9883=""))
    *I thought this would give me the total number if it had an N and blank it takes a 1 and adds 1 for each one and gives me a number say 1,045 (this would be how many records satisfy the N and ""(blank)

    Any ideas?

  2. #2
    Forum Guru VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    12,010
    Hi,

    You could try

    =SUMPRODUCT(--(D2:D9883="N")*(--(E2:E9883="")))

    VBA Noob

  3. #3
    Registered User
    Join Date
    04-21-2006
    Posts
    3
    Quote Originally Posted by VBA Noob
    Hi,

    You could try

    =SUMPRODUCT(--(D2:D9883="N")*(--(E2:E9883="")))

    VBA Noob
    Thanks a lot I figured it out before i got a response works like a charm.

    THANKS A LOT!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0