+ Reply to Thread
Results 1 to 8 of 8

Multiple "&" and "or" formulas

  1. #1
    Forum Contributor
    Join Date
    04-22-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    329

    Multiple "&" and "or" formulas

    Hi all,
    Hit a wall with a formula below:
    Please Login or Register  to view this content.
    I need to include an "OR" at the end of this formula here, just can't get anything to work?
    Please Login or Register  to view this content.

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Multiple "&" and "or" formulas

    You forgot to tell what you want. What is your input? What are the expected results? (And why?)
    Please attach a sample workbook.

  3. #3
    Forum Contributor
    Join Date
    04-22-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    329

    Re: Multiple "&" and "or" formulas

    Apologies Hans, I've attached a simplified example ok, thanks for any help
    Attached Files Attached Files

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

    Re: Multiple "&" and "or" formulas

    try this... =SUMPRODUCT((YEAR(B2:B21)=M1)*(C1:H1=N1)*(C2:C21=L1))+SUMPRODUCT((YEAR(B2:B21)=M1)*(C1:H1=N1)*(C2:C21=L2))
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  5. #5
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Multiple "&" and "or" formulas

    Please try

    =SUMPRODUCT((YEAR(B2:B21)=M1)*(C1:H1=N1)*((C2:C21=L1)+(C2:C21=L2)>0))

    Regards.

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Multiple "&" and "or" formulas

    Another option:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    04-22-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    329

    Re: Multiple "&" and "or" formulas

    All work perfectly, thank you guys

  8. #8
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Multiple "&" and "or" formulas

    You are welcome, glad to have helped and thanks for the feedback and rep .

+ 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. [SOLVED] Multiple layered "IF" functions or better use of "SMALL"/"LARGEST" funtion.
    By DexterStagg in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-12-2020, 09:14 AM
  2. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  3. Replies: 2
    Last Post: 07-24-2017, 02:19 AM
  4. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  5. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  6. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  7. Replies: 2
    Last Post: 06-06-2013, 12:45 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