+ Reply to Thread
Results 1 to 9 of 9

Array not displaying result after moving data

  1. #1
    Registered User
    Join Date
    12-13-2019
    Location
    UK
    MS-Off Ver
    2010
    Posts
    4

    Array not displaying result after moving data

    Hi,

    Hope you guys can help me out here

    I "borrowed" an example array for a shift schedule where X axis is date and Y axis is names. It displays the names of anyone with an X in the array for the chosen date

    On my sheet, the positioning is slightly different to the example and the names column is populated by a pivot table which references a table on another sheet

    Despite matching up the location references from the example array formula to my sheet, the formula refuses to display any names when there's an X in the array

    The formula used is =IFERROR(INDEX($B$6:$B$30,SMALL(IF(INDEX($C$6:$AG$30,0,MATCH($B$33, $C$5:$AG$5, 0))="x",MATCH(ROW($B$6:$B$30),ROW($B$6:$B$30)),""),ROWS($A$1:A1))), "")

    I've tried Ctrl Shift Enter and I've tried replacing the pivot table with a different reference table at the last column instead and referencing that instead with no luck

    I've attached the example sheet I borrowed from (Shift-Schedulingv3) and my sheet (Broken Array)- I'm fairly sure the pivot table data stays intact although it doesn't have the reference page anymore

    I'm using Excel 2010

    Any ideas?
    Attached Files Attached Files
    Last edited by Joe_D; 12-14-2019 at 05:55 AM. Reason: Solved

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Array not displaying result after moving data

    Remove all merged cells. Then try.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Registered User
    Join Date
    12-13-2019
    Location
    UK
    MS-Off Ver
    2010
    Posts
    4

    Re: Array not displaying result after moving data

    Thanks for the reply

    I removed the only merged cell (E1) in my sheet, which wasn't linked to the array - It still displays no results my end

    Did that fix it for you?

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Array not displaying result after moving data

    The date from the activex control is being treated as text, rather than a numeric date.

    Link the active control to A33 rather than B33.
    In B33 use the formula
    =A33 * 1
    Cheers
    Andy
    www.andypope.info

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Array not displaying result after moving data

    I simplified the formula in C5:
    =DATE($E$1,MONTH($J$1&1),1)

    In A36, copied across and down - an ordinary formula:
    =IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW($C$6:$C$30)/(INDEX($C$6:$AG$30,,MATCH($B$33,$C$5:$AG$5,0))="X"),ROWS($1:1))),"")

    There is something wrong with B33. It is not a date. It is text that just looks like one. Whatever way you are using to choose it, you need to change it to return a real date.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Registered User
    Join Date
    12-13-2019
    Location
    UK
    MS-Off Ver
    2010
    Posts
    4

    Re: Array not displaying result after moving data

    That fixed the date issue with the fix from Glenn Kennedy below

    You're a star!

  7. #7
    Registered User
    Join Date
    12-13-2019
    Location
    UK
    MS-Off Ver
    2010
    Posts
    4

    Re: Array not displaying result after moving data

    That's fixed it!

    I copied the formula in to B36 and changed A:A to B:B for the names

    I used the date fix from Andy Pope

    You're a star!

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Array not displaying result after moving data

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Array not displaying result after moving data

    If you used my formula, there is no need to change anything. Just drag it across and down.

+ 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] INDEX/MATCH more than 1 result available but only displaying the 1st result
    By MarkPr in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-23-2018, 04:48 AM
  2. SMALL formula not displaying all data in array - issue with data?
    By STUARTXL in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-17-2016, 04:30 AM
  3. [SOLVED] Counting data and moving up result
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-17-2014, 06:24 AM
  4. VBA- Skipping word in column of data and displaying result in other sheet
    By newatvba in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-03-2013, 10:55 PM
  5. Moving through columns and displaying a different result in each through VBA
    By seigna in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-07-2013, 11:34 AM
  6. chart data result problems not displaying accurately
    By Akasha4 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-09-2011, 12:34 PM

Tags for this Thread

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