+ Reply to Thread
Results 1 to 6 of 6

Generating formula for multiple columns

Hybrid View

  1. #1
    Registered User
    Join Date
    10-18-2017
    Location
    US
    MS-Off Ver
    2013
    Posts
    3

    Generating formula for multiple columns

    I have a spreadsheet with multiple sheets. I'm trying to create a formula on Sheet 1 that pulls information from Sheet 3.

    I'm trying to create a forumla to add the amount of Windows 2008 servers (column B) that are marked as production (column L)

    =SUMPRODUCT('Sheet 3'!B2:B799,"Windows 2008")*('Sheet 3'!L2:L799,"Production"))

    Any help would be appreciated.

    Thanks.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,492

    Re: Generating formula for multiple columns

    Welcome to the forum!

    I'm not clear what you are looking to achieve: do you want, in effect, a filtered list, or do you want a number? If the latter, then COUNTIFS will work for you.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    10-18-2017
    Location
    US
    MS-Off Ver
    2013
    Posts
    3

    Re: Generating formula for multiple columns

    Hello,

    I just need a number.

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Generating formula for multiple columns

    I believe that you are simply missing an open parenthesis and equal signs (instead of commas). That is,

    =SUMPRODUCT(('Sheet 3'!B2:B799="Windows 2008")*('Sheet 3'!L2:L799="Production"))

    As Ali said, I would use COUNTIFS instead of SUMPRODUCT.

    That would look like this:

    =COUNTIFS('Sheet 3'!B2:B799,"Windows 2008",'Sheet 3'!L2:L799,"Production")

  5. #5
    Registered User
    Join Date
    10-18-2017
    Location
    US
    MS-Off Ver
    2013
    Posts
    3

    Re: Generating formula for multiple columns

    Works like a charm. Thanks.

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Generating formula for multiple columns

    You're welcome. Glad we could help.

    If that solved your question, please mark this thread as SOLVED.

    Thank you for the rep!
    Last edited by 63falcondude; 10-18-2017 at 01:01 PM. Reason: Rep added

+ 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. Auto-Generating a pie chart based on different columns
    By davidmp2 in forum Excel General
    Replies: 1
    Last Post: 07-21-2016, 10:46 AM
  2. Formula for generating multiple returns
    By arsmemoriae7 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-15-2016, 05:34 PM
  3. Replies: 1
    Last Post: 06-22-2015, 01:18 AM
  4. [SOLVED] Generating product id codes from multiple columns with arguments - No VBA
    By huwtre in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-25-2014, 11:27 AM
  5. Generating table using min/max values in columns
    By djaceuk in forum Excel General
    Replies: 0
    Last Post: 08-06-2012, 09:05 AM
  6. Generating combination of # into 2 columns:
    By Conrat in forum Excel General
    Replies: 2
    Last Post: 10-05-2011, 01:39 PM
  7. [SOLVED] Generating a graph using nonadjacent columns
    By John Easton in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-01-2006, 03:40 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