+ Reply to Thread
Results 1 to 3 of 3

Help with adding columns with variables

  1. #1
    Registered User
    Join Date
    09-09-2012
    Location
    Utah
    MS-Off Ver
    Excel 2003
    Posts
    9

    Help with adding columns with variables

    Help. I'm trying to build a trend database that counts multiple columns. I use this formula for the first two columns:

    =SUMPRODUCT(--(Jan!$A:$A="Pre-Check"),--(Jan!$B:$B="Good"))

    Now I need to add another cell that can be one of 3 possible words. Column K will have "Phone", "Email", or "Business Card". How can I add to my string so that it will add the first two column combinations with any of from Column K?

    Example

    A B K
    Pre-Check Good Phone
    Pre-Check Good Email
    Pre-Check Good Business Card
    Pre-Check Good Email

    The total should be 4.

    Nick

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Help with adding columns with variables

    hi Nick, welcome to the forum. you can try this:

    =SUMPRODUCT((Jan!$A:$A="Pre-Check")*(Jan!$B:$B="Good")*(Jan!$K:$K={"Phone","Email","Business Card"}))

    or put your criteria horizontally in somewhere say C1:E1
    =SUMPRODUCT((Jan!$A:$A="Pre-Check")*(Jan!$B:$B="Good")*(Jan!$K:$K=$C$1:$E$1))

    but it is not recommended you refer to the whole column A, B & K. could slow down your Excel

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    09-09-2012
    Location
    Utah
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Help with adding columns with variables

    Thanks Benishiryo. It worked great. Now to figure out what I need to do next.

    Nick

+ 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