+ Reply to Thread
Results 1 to 21 of 21

In a table, how can I select to display only certain columns and not others.

  1. #1
    Registered User
    Join Date
    07-10-2021
    Location
    GENEVA
    MS-Off Ver
    EXCEL FOR MAC MICROSOFT 365
    Posts
    83

    In a table, how can I select to display only certain columns and not others.

    I have a table with around 60 columns. The number of columns will continue to grow. When I input data, I only need to work on a relatively small number of columns (say 6 columns), which could be located anywhere amongst the 60+ columns. For example, I might need to work on columns A,B,C and on columns BA, BB, BC at the same time.

    This is becoming difficult to manage as I can't display the whole table on a single monitor, and I keep having to scroll huge distances to the left or right.

    I have illustrated what I would like to achieve in the attached simplified spreadsheet.

    I can achieve the required outcome by MANUALLY hiding or shrinking non-needed columns, but this is very tedious and time consuming - at least doing it manually. I would like to find a simpler way, I am sure someone here can help?

    Below is a simple version of the spreadsheet.
    Screenshot 2022-03-09 at 08.53.17.png

    Below is the desired outcome after filtering out columns B to E
    Screenshot 2022-03-09 at 08.54.15.png
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: In a table, how can I select to display only certain columns and not others.

    Please try

    =FILTER(Table1[#All],TRANSPOSE(B11:B16="Yes"))
    Attached Files Attached Files

  3. #3
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2503 and WPS V2024(12.1.0.18543)
    Posts
    3,944

    Re: In a table, how can I select to display only certain columns and not others.

    Try N2 formula

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


    with header
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by wk9128; 03-09-2022 at 05:08 AM.

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

    Re: In a table, how can I select to display only certain columns and not others.

    =FILTER(Table1[#All],TRANSPOSE(IF(B11:B16="Yes",1,0)))
    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

  5. #5
    Registered User
    Join Date
    07-10-2021
    Location
    GENEVA
    MS-Off Ver
    EXCEL FOR MAC MICROSOFT 365
    Posts
    83

    Re: In a table, how can I select to display only certain columns and not others.

    Quote Originally Posted by Bo_Ry View Post
    Please try

    =FILTER(Table1[#All],TRANSPOSE(B11:B16="Yes"))
    Hi Bo_Ry, Thank you for your answer which does indeed answer the question as contained in my header. It was not exactly the answer I was looking for (my fault). My header was not completely clear.

    What I meant to say is "In a table, how can I select to display only certain columns and not others...SO THAT I CAN INPUT THE DATA MORE EASILY". I want to enter data in to the table with a reduced number of columns, not just "Display" it. Thanks anyway, the Filter command seems very useful to me for other reasons.

    Thanks @wk9128, thanks @Glenn Kennedy
    Last edited by TRICKYT57; 03-09-2022 at 06:48 AM.

  6. #6
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: In a table, how can I select to display only certain columns and not others.

    alternatively use a VBA UserForm
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  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
    30,878

    Re: In a table, how can I select to display only certain columns and not others.

    Why not simply "Hide" those columns not required?

    If you want to select those columns (as per "Columns to display" image ) then VBA can do this.

    OR use "Custom Form" in "Developer" which will display all Visible columns and provides a friendly input form. No VBA!

    https://www.howtoexcel.org/how-to-cr...m-without-vba/
    Last edited by JohnTopley; 03-09-2022 at 06:45 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  8. #8
    Registered User
    Join Date
    07-10-2021
    Location
    GENEVA
    MS-Off Ver
    EXCEL FOR MAC MICROSOFT 365
    Posts
    83

    Re: In a table, how can I select to display only certain columns and not others.

    Quote Originally Posted by JohnTopley View Post
    Why not simply "Hide" those columns not required?

    Because the columns into which I need to enter data change frequently, and are not contiguous. That means that before each data entry I would need to hide 35 to 59 non-contiguous columns, and after each data entry I would need to unhide them and hide different columns. I am really looking for something where I can hide specific groups of columns with one or two clicks. For example for entering one type of data I might only need columns A, F, +B, BX, BZ and CS, For a different type of data entry I might only need columns A, X, AR, CB and CT. Therefore I am looking for a simple tool I can use to rapidly hide the other columns (and unhide). Something like (imaginary) =HIDECOLUMNS(), which could be invoked quickly with a simple click.


    Quote Originally Posted by JohnTopley View Post
    If you want to select those columns (as per "Columns to display" image ) then VBA can do this.

    To be clear, it's not really "DISPLAY" I want, but rather a way to enter the Data with a much reduced number of columns. As for VBA, I have never really been able to learn it, I tried a few times). I gave up after people told me the Mac version is really so cut down so as to be useless. That was several years ago, so maybe it has got better.
    Last edited by TRICKYT57; 03-09-2022 at 06:53 AM.

  9. #9
    Registered User
    Join Date
    07-10-2021
    Location
    GENEVA
    MS-Off Ver
    EXCEL FOR MAC MICROSOFT 365
    Posts
    83

    Re: In a table, how can I select to display only certain columns and not others.

    Quote Originally Posted by JohnTopley View Post
    OR use "Custom Form" in "Developer" which will display all Visible columns and provides a friendly input form. No VBA!

    https://www.howtoexcel.org/how-to-cr...m-without-vba/

    John, that sounds like my most likely option. I am going to read up on the link you provided for custom forms. Hopefully it will be what I am looking for. Thanks!

  10. #10
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: In a table, how can I select to display only certain columns and not others.

    see big yellow banner - how to upload your workbook - with 10 - 12 rows of desensitised data.
    far easier then to give a solution relevant to 'real world' requirement.

  11. #11
    Registered User
    Join Date
    07-10-2021
    Location
    GENEVA
    MS-Off Ver
    EXCEL FOR MAC MICROSOFT 365
    Posts
    83

    Re: In a table, how can I select to display only certain columns and not others.

    Hi again John,
    form
    Sadly the Data entry form does not seem to exist in Microsoft 365 for Mac. I could not find it in the All Tools, so googled and found this comment:
    Attachment 771734

  12. #12
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: In a table, how can I select to display only certain columns and not others.

    from your post it would appear you have in excess of sixty columns.
    even if the data entry form was available to you on 'Mac', it would no cover your requirement as it is limited to 32 columns max on Windows PC.
    This limitation does not exist if you construct a UserForm using VBA.

  13. #13
    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
    30,878

    Re: In a table, how can I select to display only certain columns and not others.

    Pity so you are left with VBA. See post #10/#12 from torachan (these forms are his speciality!)

    But look here:

    https://www.contextures.com/exceldat...pdateform.html

  14. #14
    Registered User
    Join Date
    07-10-2021
    Location
    GENEVA
    MS-Off Ver
    EXCEL FOR MAC MICROSOFT 365
    Posts
    83

    Re: In a table, how can I select to display only certain columns and not others.

    Quote Originally Posted by torachan View Post
    see big yellow banner - how to upload your workbook - with 10 - 12 rows of desensitised data.
    far easier then to give a solution relevant to 'real world' requirement.
    torachan - I request you clarify what you mean. I thought my excel file met all the requirements in the big yellow banner.

  15. #15
    Registered User
    Join Date
    07-10-2021
    Location
    GENEVA
    MS-Off Ver
    EXCEL FOR MAC MICROSOFT 365
    Posts
    83

    Re: In a table, how can I select to display only certain columns and not others.

    Quote Originally Posted by JohnTopley View Post
    Pity so you are left with VBA. See post #10/#12 from torachan (these forms are his speciality!)

    But look here:

    https://www.contextures.com/exceldat...pdateform.html
    Thank you John, It looks like I have no choice but to learn how to set up and use VBA if I need to do these kinds of things. I'm nearly 70 years old and was hoping that my days of study were long behind me, - but I have an open mind, so I will give it a go. VBA sounds daunting - but maybe it's not at all. Thanks!

  16. #16
    Registered User
    Join Date
    07-10-2021
    Location
    GENEVA
    MS-Off Ver
    EXCEL FOR MAC MICROSOFT 365
    Posts
    83

    Re: In a table, how can I select to display only certain columns and not others.

    Quote Originally Posted by torachan View Post
    from your post it would appear you have in excess of sixty columns.
    even if the data entry form was available to you on 'Mac', it would no cover your requirement as it is limited to 32 columns max on Windows PC.
    This limitation does not exist if you construct a UserForm using VBA.
    Thank you Torachan!. I was seriously thinking of moving my data to PC to try and solve the problem. Now I don't need to do that. I will explore the VBA solution as you suggest.

  17. #17
    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
    30,878

    Re: In a table, how can I select to display only certain columns and not others.

    You will need to provide a file with ALL columns PLUS identify which ones are data-entry fields as I assume many are formulae.

    And do want a VBA Userform only to display selected [i.e variable number of] data entry columns (as per your original request)?

  18. #18
    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
    30,878

    Re: In a table, how can I select to display only certain columns and not others.

    If moving to a PC is a viable(better?) option than learning some VBA then look at doing so.

    The FORM function will only display visible columns so unless you have (or want) more than 32 columns visible at any one time, it will suffice.

    If as requested you post a your real file, I'll have a "play" with the FORM option anyway!

  19. #19
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: In a table, how can I select to display only certain columns and not others.

    @TRICKYT57, at nearly 70 you are a 'spring chicken' compared to some of us aged persons.

  20. #20
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: In a table, how can I select to display only certain columns and not others.

    If the hidden column is fixed,

    You may try selecting column you want to hide
    then go to Ribbon > DATA > Group

    https://support.microsoft.com/en-us/...%20even%20open.
    Attached Files Attached Files

  21. #21
    Registered User
    Join Date
    07-10-2021
    Location
    GENEVA
    MS-Off Ver
    EXCEL FOR MAC MICROSOFT 365
    Posts
    83

    Re: In a table, how can I select to display only certain columns and not others.

    Quote Originally Posted by Bo_Ry View Post
    If the hidden column is fixed,

    You may try selecting column you want to hide
    then go to Ribbon > DATA > Group

    https://support.microsoft.com/en-us/...%20even%20open.
    Bo_Ry, Thank you so much for the suggestion to use the Group function on the Ribbon. It's exactly the kind of solution I was looking for. With some re-arrangement of my columns into a different order, the group function will allow me to instantly hide (with just one click) all columns except those into which I will enter data. It's one click instead the previous five mouse actions -per column to hide, so a real time saver for me.

    Even more importantly, it can act as a permanent marker of which columns I need to hide, instead of having to figure it out each time. That's a big time saver too!

    Although the "Group" function has been sitting in my ribbon for years, it never occurred to me to figure out what it does.

    The ability to "nest" groups or have sub-groups is particularly useful to my set up. Thank you so much for taking the time to figure out what I was trying to achieve and pointing me to the solution.

    We can now mark this as "SOLVED". I will try and do that if I can see the button.
    Last edited by TRICKYT57; 03-10-2022 at 12:36 AM.

+ 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. Replies: 1
    Last Post: 07-28-2020, 10:30 AM
  2. Dropdown to select table then rows display infor from selected
    By Hooty in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-15-2018, 02:37 PM
  3. Replies: 1
    Last Post: 08-29-2014, 10:38 AM
  4. select numbers in columns and display them in other lines
    By kuzna26 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-31-2013, 04:58 PM
  5. Need to select particular value from table and display message
    By irfanparbatani in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-08-2013, 09:02 PM
  6. [SOLVED] Select & Display editable table via dropdown box
    By -AJ- in forum Excel General
    Replies: 2
    Last Post: 06-16-2013, 02:30 PM
  7. Replies: 0
    Last Post: 09-10-2012, 09:19 AM

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