+ Reply to Thread
Results 1 to 9 of 9

[SOLVED] Crop sheet to data or selection

  1. #1
    Registered User
    Join Date
    01-11-2022
    Location
    Brazil
    MS-Off Ver
    Office 365
    Posts
    5

    Lightbulb [SOLVED] Crop sheet to data or selection

    Hello.

    I would like to know how can i quickly remove extra rows and columns from a Excel sheet.
    Example: I have only 10 rows, with 5 colums (10x5). The rest of this are just empty rows and empty columns

    I wanna show only rows and columns that contains data!
    Below a image demonstrating what i want to achieve but in Google Sheets:

    image_2022-01-11_173851.png

    Thanks in advance!

    Edit: Solved by Haluk!
    Last edited by HorselessName; 01-16-2022 at 03:38 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Crop sheet to data or selection

    Hi and welcome to the forum

    Pictures are of little value. Honestly, no one wants to re-type your data to try and solve your issue. Additionally, we would only be guessing at how your data was structured, ie. formulas, formatting, etc. Additionally, due to how some browsers behave, many of our members cannot see uploaded pictures/images. Please do not take this route.

    Please attach a sample file that represents what you have. The structure of your attachment should be the same structure as your actual data. Any proprietary information should be changed.

    Include in the attachment any code you're currently using (whether it works or not) and an "After" of what you wish the output to be.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Crop sheet to data or selection

    According to your image;

    - Select Column J with you mouse, hit "Shift+Ctrl+Right Arrow" to select all the columns after Column J and right click one of the Column headers and hit the small down arrow on top-right of the header then, select "Hide Columns"

    - Do this for the rows similarly,

  4. #4
    Registered User
    Join Date
    01-11-2022
    Location
    Brazil
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Crop sheet to data or selection

    Quote Originally Posted by alansidman View Post
    Hi and welcome to the forum

    Pictures are of little value. Honestly, no one wants to re-type your data to try and solve your issue. Additionally, we would only be guessing at how your data was structured, ie. formulas, formatting, etc. Additionally, due to how some browsers behave, many of our members cannot see uploaded pictures/images. Please do not take this route.

    Please attach a sample file that represents what you have. The structure of your attachment should be the same structure as your actual data. Any proprietary information should be changed.

    Include in the attachment any code you're currently using (whether it works or not) and an "After" of what you wish the output to be.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    I don't really understand why someone would want to re-type my data...
    The images are for visualization only. As a IT Technician i can confirm that most people understand things faster and better when the explanation comes with visualization...

    I honestly feel like you are complicating something that is not that complicated - I just wanna hide the blank/unused rows and columns
    But thanks. I appreciante your efforts - I did what Haluk told below and did what i wanted to achieve. it was exactly what i needed and described on the topic!

    Thanks for your answer tho. Have a nice day.
    Last edited by HorselessName; 01-13-2022 at 03:16 PM.

  5. #5
    Registered User
    Join Date
    01-11-2022
    Location
    Brazil
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Crop sheet to data or selection

    Quote Originally Posted by Haluk View Post
    According to your image;

    - Select Column J with you mouse, hit "Shift+Ctrl+Right Arrow" to select all the columns after Column J and right click one of the Column headers and hit the small down arrow on top-right of the header then, select "Hide Columns"

    - Do this for the rows similarly,
    This! Exactly what i needed.
    Problem solved. You're the man.

  6. #6
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Crop sheet to data or selection

    for Google Sheets (as is the image screenshot), instead of hiding, if you do not need the columns/rows, you can completely remove them by following similar process to select the columns, but then right clicking, and choosing the option to delete.
    similarly, you can add them back in again when needed.

    Screen Shot 2022-01-14 at 5.02.49 pm.png

  7. #7
    Registered User
    Join Date
    01-11-2022
    Location
    Brazil
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Crop sheet to data or selection

    Quote Originally Posted by janmorris View Post
    for Google Sheets (as is the image screenshot), instead of hiding, if you do not need the columns/rows, you can completely remove them by following similar process to select the columns, but then right clicking, and choosing the option to delete.
    similarly, you can add them back in again when needed.

    Attachment 763397
    Hello! Thanks. I do know how to do this on Google Sheets...
    My question is for Excel Sheets only...

    But thanks! +1 for you.

  8. #8
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Crop sheet to data or selection

    This section is for Mac and G-Sheets, and platforms other than Windows.

    So to prevent confusion in future, please update your profile to the correct version of office (365 for Mac), but if it is for Windows, then just post in the regular sections (rather than this one).

  9. #9
    Registered User
    Join Date
    01-11-2022
    Location
    Brazil
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Crop sheet to data or selection

    Quote Originally Posted by janmorris View Post
    This section is for Mac and G-Sheets, and platforms other than Windows.

    So to prevent confusion in future, please update your profile to the correct version of office (365 for Mac), but if it is for Windows, then just post in the regular sections (rather than this one).
    I am using 365 for MAC, it's in the correct section.
    Please try to keep focus on the part "Excel Sheets"

    365 for MAC, Windows, and all of Excel versions have the same structure.
    The same method Haluk teached me worked on multiple versions of Excel - I just tested it on Web 365, MAC and a Windows computer.
    The same proccess worked the same way on the three platforms...

    My guess is that only specific functions and features like for example some VBA programming and integration works differently on multiple platforms.
    But i do not use those advanced functions and features of Excel.

    i do not see that confusion - As of course my question is solved.
    I will even mark as SOLVED and specifiy who solved it!

    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. Working Out Crop Amounts from Crop Code & Area
    By bcup in forum Excel General
    Replies: 1
    Last Post: 12-14-2019, 09:57 AM
  2. crop and Save File name in a cell on sheet
    By kobiashi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-13-2018, 01:57 PM
  3. Replies: 2
    Last Post: 05-31-2016, 01:55 PM
  4. Crop to selection (and shift to upper left corner)?
    By pstein in forum Excel General
    Replies: 4
    Last Post: 01-18-2015, 08:02 PM
  5. Replies: 5
    Last Post: 07-22-2014, 06:29 AM
  6. Replies: 0
    Last Post: 05-06-2013, 08:33 AM
  7. [SOLVED] Excel VBA: Dropdown box selection in first sheet to populate 2nd sheet from 3rd sheet data
    By EMLalan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-07-2012, 09:46 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