+ Reply to Thread
Results 1 to 7 of 7

Sumif/Counif/Vlookup--NOT SURE??

  1. #1
    Registered User
    Join Date
    02-10-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    24

    Sumif/Counif/Vlookup--NOT SURE??

    I have 2 columns that I am trying to pull information from:

    Row 1 Row2
    A: Columbus Detail
    B: Columbus Blank
    C: Columbus Detail
    D: Tulsa Detail

    I am looking for a formula that will count how many projects are "Detail and Blank - from Row 2" and are from "Columbus--Row 1". I have been playing around with this for too long and cant figure it out. So I am looking for a formula that will show me "3"

    Thanks for you help!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Sumif/Counif/Vlookup--NOT SURE??

    Correcting your syntax to columns, I would suggest something like:

    =SUMPRODUCT(--(A2:A5="Columbus"), --($B$2:$B$5="Detail")+($B$2:$B$5="Blank"))

    Please Login or Register  to view this content.
    ...or based on this layout:

    =SUMPRODUCT(--(A2:A5=D2), --($B$2:$B$5="Detail")+($B$2:$B$5="Blank"))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Sumif/Counif/Vlookup--NOT SURE??

    I think you have your rows and columns a bit confused; columns are A, B, C and rows are 1, 2, 3. If your data is organized as shown, they are in Column A and Column B, and rows 1-4.

    These formulas will give you what you want:

    =COUNTIF(B:B,"Detail")
    =COUNTIF(B:B,"Blank")
    =COUNTIF(A:A,"Columbus")
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Sumif/Counif/Vlookup--NOT SURE??

    On seeing JBeaucaire's solution I realize I may have misunderstood what is being asked for; I guess you need a single formula that combines all those conditions. But if everything is either Detail or Blank, why not just count occurrences of Columbus?

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Sumif/Counif/Vlookup--NOT SURE??

    Your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us help you!
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  6. #6
    Registered User
    Join Date
    02-10-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Sumif/Counif/Vlookup--NOT SURE??

    Sorry Guys, I did not mean to break any rules. I was just under a deadline today and needed some help and posted the question on another forum also.

    JBeaucaire, I owe you. You solved it! Thanks

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Sumif/Counif/Vlookup--NOT SURE??

    Quote Originally Posted by DaFonz01 View Post
    Sorry Guys, I did not mean to break any rules. I was just under a deadline today and needed some help and posted the question on another forum also.

    JBeaucaire, I owe you. You solved it! Thanks
    That too would be breaking a rule... you need to post links to crossposts...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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.6.0 RC 1