+ Reply to Thread
Results 1 to 12 of 12

INDIRECT(CONCATENATE( and Blank-Free dropdowns

  1. #1
    Registered User
    Join Date
    09-28-2016
    Location
    Austin, Texas
    MS-Off Ver
    Office 365, Office 2010
    Posts
    22

    INDIRECT(CONCATENATE( and Blank-Free dropdowns

    So here's a strange one.

    I'm making a spreadsheet that has a lot of user-filled information and dropdowns to reference it. Decided to add some quality of life features to this and looked up how to nix blanks from this list. And it totally works.

    Sort of.

    I've got it set up like so:

    There are four named lists:

    AlphaList
    BetaList
    GammaList
    DeltaList

    I used the lessons I read here to essentially make a set of dropdown lists without blanks. They are:

    AlphaListSort
    BetaListSort
    GammaListSort
    DeltaListSort

    Great! Those work wonderfully upon testing! Until I implement them.

    When the user uses the forum, they select a value from a dropdown. That value dictates whether Alpha, Beta, Gamma, or Delta is called in CellA3. So I use

    =INDIRECT(CONCATENATE(A3,"ListSort"))

    ...and it goes to hell. Data Validation works for

    =INDIRECT(CONCATENATE(A3,"List"))

    but not ListSort. Meanwhile, =AlphaList and =AlphaListSort both work as they're supposed to. Plugging it into a cell results in a "Moving or deleting cells caused an invalid cell reference error", but

    =CONCATENATE(A3,"ListSort")

    while properly combining it to AlphaListSort in the test, won't work in data validation.


    It should be noted that due to the shared, user-input nature of this spreadsheet, that backwards and sideways compatibility is important - with a target goal of this being fully compatible with google docs.
    Last edited by WitchRolina; 10-01-2016 at 11:14 AM.

  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. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,799

    Re: INDIRECT(CONCATENATE( and Blank-Free dropdowns

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    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
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: INDIRECT(CONCATENATE( and Blank-Free dropdowns

    Not that this will fix anything, but you dont need to use CONCAT
    =INDIRECT(A3&"ListSort")

    So, Tell me (exactly) what would be in A3, and if you just use =A3&"ListSort" what do you get?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: INDIRECT(CONCATENATE( and Blank-Free dropdowns

    Quote Originally Posted by WitchRolina View Post
    And it totally works.

    Sort of.
    In other words, it doesn't work!

    How is AlphaListSort defined?

    If it's a dynamic range defined with functions like OFFSET then that's the problem.

    INDIRECT won't work with functions like OFFSET.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    09-28-2016
    Location
    Austin, Texas
    MS-Off Ver
    Office 365, Office 2010
    Posts
    22

    Re: INDIRECT(CONCATENATE( and Blank-Free dropdowns

    Quote Originally Posted by Tony Valko View Post
    How is AlphaListSort defined?

    If it's a dynamic range defined with functions like OFFSET then that's the problem.

    INDIRECT won't work with functions like OFFSET.
    Pretty much exactly as explained in the tutorial I linked to. It creates a dynamic range only as long as the number of entries provided in the list. If indirect doesn't work with dynamic ranges, is there a way to call a named dynamic range in the way I mentioned in the first post without it that will work?

    @FDibbons: Changing it to =A3&"ListSort" produces error message "The list source must be a delimited list, or a reference to a single row or column." The error message does not occur when it does not try to combine the cell contents with the string to complete the list name, it just works as it should.

    Edit: Tried a roundabout, combining A3 with ListSort in a separate cell, and trying to refer to that cell for the list name. I get the same problem, so it's not the act of combining it in-cell that's the issue, it's the fact that I need to refer to the named list, and not straight up name it. Again, =AlphaListSort works fine in data validation, but trying to refer to it from cell data does not, which seems completely arbitrary to me.

    I should also mention that there are compatibility concerns to keep in mind - solutions should be compatible with google docs due to the shared nature of this particular spreadsheet.
    Last edited by WitchRolina; 10-01-2016 at 11:20 AM.

  6. #6
    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. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,799

    Re: INDIRECT(CONCATENATE( and Blank-Free dropdowns

    Attach your file here, as I described in post #2.

  7. #7
    Registered User
    Join Date
    09-28-2016
    Location
    Austin, Texas
    MS-Off Ver
    Office 365, Office 2010
    Posts
    22

    Re: INDIRECT(CONCATENATE( and Blank-Free dropdowns

    Did some more research into the subject - apparently, macros can be written that fix the problem, but then the issue of compatibility comes up. This doc will need to be compatible with Google Docs due to its shared nature, and that'll break any macros since google decided you have to use a separate scripting language. This unfortunately means that macros aren't gonna be an option.

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: INDIRECT(CONCATENATE( and Blank-Free dropdowns

    Quote Originally Posted by WitchRolina View Post
    solutions should be compatible with google docs due to the shared nature of this particular spreadsheet.
    I have no experience with Google docs so I don't know what would be compatible and what wouldn't.

  9. #9
    Registered User
    Join Date
    09-28-2016
    Location
    Austin, Texas
    MS-Off Ver
    Office 365, Office 2010
    Posts
    22

    Re: INDIRECT(CONCATENATE( and Blank-Free dropdowns

    I usually just run stuff through a google search of "Is X in Excel compatible with Google Docs". Serves me well enough - it's why I did some research real quick. Unless this is like my vLookup thread and the solution is "This function you didn't know about exists and does what you want but better", I'm thinking I may have to take a half-measure due to compatibility needs. I mean, I straight up found a solution that works with excel specifically thanks to some of the terminology you guys were using, but checking against compatibility proved that solution not an option... which kinda sucks because I found another cool thing I could do where if they change cells that others are dependent on for their own lookups, it'd clear them out... but sadly, macros were the prohibiting factor. Plus, apparently when I tell people "get Excel or OpenOffice Calc", they seem to get upset at me for some reason, despite the latter being free.

    What I'm thinking I might do then is refer to the list not dynamically, but simply as it is - an ordered list with all the entries moved up to the top and the blanks moved down below them. It's a half measure, sure, but unless there's a way to combine cell data and a string together to call a named dynamic list that excel and other spreadsheets decided arbitrarily not to like, then it's likely the best I can hope for at this point. Either way, it's not necessary for my spreadsheet to work - it's straight up a quality of life feature I was hoping to use.

  10. #10
    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. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,799

    Re: INDIRECT(CONCATENATE( and Blank-Free dropdowns

    When I asked you to post the file, I was trying to help. I would have taken a look at it and, who knows, I or someone else might have been able to sort this out for you by now. If you don't want to attach the file for some reason, that's fine, but I would not have expected to have received negative rep for attempting to help you: we learn something new every day!

  11. #11
    Registered User
    Join Date
    09-28-2016
    Location
    Austin, Texas
    MS-Off Ver
    Office 365, Office 2010
    Posts
    22

    Re: INDIRECT(CONCATENATE( and Blank-Free dropdowns

    It felt like a copy-paste out of context. The other two addressed my post and tried to help. The person who helped me in my last thread at least addressed my issue before asking to see the spreadsheet. How you come across is important, and if you come across as demanding and uncaring, I'm likely to have a low opinion of you, especially while others actively try to help.

  12. #12
    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. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,799

    Re: INDIRECT(CONCATENATE( and Blank-Free dropdowns

    I was actively trying to help. I help a lot of people here, as you can see from my reputation points - helping others is what motivates me to be here.
    Last edited by AliGW; 10-06-2016 at 05:18 PM.

+ 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] Concatenate If Blank - remove blank line if first cell is blank
    By ker9 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-27-2014, 02:14 PM
  2. MACRO to check validation dropdowns left blank
    By Daimez in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 10-31-2008, 05:12 AM
  3. Dynamic Indirect Validation Dropdowns
    By ChemistB in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-04-2008, 11:02 AM
  4. Indirect, Concatenate, & ?
    By Harlan Grove in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-06-2005, 10:05 AM
  5. Indirect, Concatenate, & ?
    By Harlan Grove in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-06-2005, 06:05 AM
  6. Indirect, Concatenate, & ?
    By JEFF in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. Indirect, Concatenate, & ?
    By JEFF in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 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