+ Reply to Thread
Results 1 to 5 of 5

How do I shift rows up if array formulas (if, index) returns error?

  1. #1
    Registered User
    Join Date
    10-30-2019
    Location
    Virginia, US
    MS-Off Ver
    Office 365
    Posts
    2

    How do I shift rows up if array formulas (if, index) returns error?

    I'm trying to do what is quite advanced spreadsheet work for me and I'm a bit out of my element. I've gotten this far on my own with a little research and perserverance, but I've hit a wall and need help.

    I am trying to create a worksheet for a summer camp that will allow me to arrange campers by what activities they are in. It makes it easier if I can list out what they are in and then have it populate into the final sheet, but it needs to be a printable neat document, which means there can't be blanks where the formula came out not to be true for the activity.

    The current formula I have is: =arrayformula(IFERROR(if('Dropdown Menu''s '!C33:C47="social group",INDEX('Dropdown Menu''s '!A33:A47),"")))

    P1 - Array IFERROR IF INDEX Formula.JPG -- Image #1 is where my problem is, I want the data to move up and skip the blanks.

    Datasheet.JPG

    -- Image #2 is just where the information to run the formula is coming from.


    Let me know if you have questions. I'll do my best to answer them.

    Any advice is appreciated.

    Thanks!

  2. #2
    Registered User
    Join Date
    10-30-2019
    Location
    Virginia, US
    MS-Off Ver
    Office 365
    Posts
    2

    Re: How do I shift rows up if array formulas (if, index) returns error?

    Sample Spreadsheet.xlsx

    Additionally here should be a sample spreadsheet

  3. #3
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,424

    Re: How do I shift rows up if array formulas (if, index) returns error?

    The formula in post #1 appears to be a Google Sheets formula. If you are using Google sheets this may not work (I know very little about Google Sheets).
    1. Paste the following into cell B8 on the Copy of P1 sheet and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    2. Replace the formula in B28 with: =SUMPRODUCT(--(B8:B27<>""))
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  4. #4
    Registered User
    Join Date
    12-03-2012
    Location
    CHENNAI , INDIA
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: How do I shift rows up if array formulas (if, index) returns error?

    Hi ,

    The following formula may work in Google Sheets :

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This is an array formula , and you can either enter it using CTRL SHIFT ENTER , or wrap it within the arrayformula wrapper.

    You can also use the Google Sheets functions UNIQUE and FILTER as follows :

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In cell B28 , you can use
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Narayan

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: How do I shift rows up if array formulas (if, index) returns error?

    Thread moved to the correct forum section for Google Sheets - please don't post Google Sheet queries in the Excel sections. Thanks.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] #NUM error in Array formula using Index, Small, Row and Rows
    By drivingguy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-16-2018, 01:27 PM
  2. Using Index for Multiple Returns from an array
    By Paulcbanks in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-30-2016, 07:25 AM
  3. Replies: 5
    Last Post: 05-18-2016, 04:50 AM
  4. Replies: 6
    Last Post: 08-11-2014, 09:13 PM
  5. [SOLVED] Search array for a value, returns index location
    By smpita in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-24-2014, 05:36 PM
  6. Ctrl+Shift+Enter (CSE) array formulas in VBA using differing formulas
    By officeguy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2012, 04:31 PM
  7. [SOLVED] how do I create a UDF (VBA) that returns an array (ctrl+shift+enter)
    By Fadi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-13-2005, 06:06 AM

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