+ Reply to Thread
Results 1 to 9 of 9

CountIF and Hlook Up Togeather

  1. #1
    Registered User
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2000
    Posts
    2

    CountIF and Hlook Up Togeather

    I would need the count of Number 1 in the B column, I tried count IF, but still a separate Hlook up is required.

    Can someone help me out with the countif and hlookup formula in same cell.

    enclosed sample excel
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,500

    Re: CountIF and Hlook Up Togeather

    you need to be more clear, why is a countif not sufficient? What results are you looking for?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: CountIF and Hlook Up Togeather

    in c12
    =COUNTIF(INDEX($B$3:$D$6,0,MATCH(B12,$B$2:$D$2,0)),1)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: CountIF and Hlook Up Togeather

    Do you mean?

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

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: CountIF and Hlook Up Togeather

    Maybe this...

    Entered in D12 and copied down:

    =COUNTIF(INDEX(B$3:D$6,,MATCH(B12,B$2:D$2,0)),C12)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: CountIF and Hlook Up Togeather

    er tony that wouldnt that try to count the number of "A"'s
    =COUNTIF(INDEX($B$3:$D$6,0,MATCH(B12,$B$2:$D$2,0)),1) counts the number of 1's

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: CountIF and Hlook Up Togeather

    My formula does count the 1's.

    In the sample file cell C12 contains a 1. I assume that's the count criteria.

  8. #8
    Registered User
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2000
    Posts
    2

    Re: CountIF and Hlook Up Togeather

    Quote Originally Posted by martindwilson View Post
    in c12
    =COUNTIF(INDEX($B$3:$D$6,0,MATCH(B12,$B$2:$D$2,0)),1)

    Many Thanks for this !!!..it worked !!

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: CountIF and Hlook Up Togeather

    ahh i see i thought that was b12 wonky eyes

+ 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. how to use find and left togeather
    By nuruedriss in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-01-2013, 06:51 AM
  2. linking 2 work books togeather
    By Zealotwraith in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-02-2013, 11:01 AM
  3. Using sumproduct and subtotal togeather ???????
    By LondonM in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-19-2013, 10:59 AM
  4. Using Hlook up
    By pani_hcu in forum Excel General
    Replies: 1
    Last Post: 10-30-2008, 08:40 PM
  5. Help With HLOOK
    By Hummer2097 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-18-2005, 02:22 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