+ Reply to Thread
Results 1 to 8 of 8

Multiple If function with arrays

  1. #1
    Registered User
    Join Date
    11-25-2015
    Location
    Copenhagen
    MS-Off Ver
    2010
    Posts
    26

    Talking Multiple If function with arrays

    Hi

    I have been trying to figure what I'm been doing wrong.

    I have IF Functions within IF Functions, where the criterias are based on several ranges. I have made the formula into an array.

    But the formula only seems to work partially.

    It's at bit difficult to explain so I've made and example workbook, where I describe and illustrate the problem.

    Thanks for helping
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Multiple If function with arrays

    I can't understand the logic: table on the right is based last month dates yet your requirement is based on this months dates.

    Please add some sample output, explaining how you calculated it.

    I think the answer is INDEX/MATCH.

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Multiple If function with arrays

    Hi
    Try this regular formula in F16
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Multiple If function with arrays

    .... think I have it!!!

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Multiple If function with arrays

    Try

    in F16 and copy down

    =IF(AND([@Dato]>=$C$13,[@Dato]<=$D$13),INDEX($N$9:$Q$13,MATCH($C16,$M$9:$M$13,0),MATCH($B16,$N$8:$Q$8,0)),"")

  6. #6
    Registered User
    Join Date
    11-25-2015
    Location
    Copenhagen
    MS-Off Ver
    2010
    Posts
    26

    Re: Multiple If function with arrays

    Thank you both

    Both of the formulas works perfectly

    I would never have thought of that solution.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Multiple If function with arrays

    Thank you for the feedback and rep.

  8. #8
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Multiple If function with arrays

    I make mine the words of JohnTopley. Thanks.

+ 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] Assign area to postcode from multiple arrays function
    By gingerbug in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-17-2015, 10:29 AM
  2. INDEX/MATCH with multiple arrays. Possibly need IF Function as well?
    By guy lafleur in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-31-2015, 03:13 PM
  3. INDEX & MATCH Function with Multiple Arrays
    By btone in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-22-2014, 03:59 PM
  4. Declaring multiple multi-dimensional arrays (jagged arrays) - compile error?
    By dfribush in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-20-2013, 05:06 PM
  5. [SOLVED] Countifs arrays with multiple criteria and subtotal function
    By 5150 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-12-2013, 01:58 AM
  6. Replies: 5
    Last Post: 03-23-2012, 11:59 AM
  7. [SOLVED] creating function with multiple arrays in arguments
    By Dave Marden in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-28-2005, 11:05 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