Jump to content
  • Sign up for free and receive a month's subscription

    You are viewing this page as a guest. That means you are either a member who has not logged in, or you have not yet registered with us. Signing up for an account only takes a minute and it means you will no longer see this annoying box! It will also allow you to get involved with our friendly(ish!) community and take part in the discussions on our forums. And because we're feeling generous, if you sign up for a free account we will give you a month's free trial access to our subscriber only content with no obligation to commit. Register an account and then send a private message to @dave u and he'll hook you up with a subscription.

Excel Geeks.


Recommended Posts

No mate, it's nothing urgent, basically every day I get a data dump with columns a-z and beyond, but I only need the data from about 7 columns so I'm manually hiding about 16 columns every time, tedious.

 

I don't want to manipulate anything, it's all literally just for filtering and viewing.

Link to comment
Share on other sites

15 minutes ago, Mudface said:

Do you hide the same columns each time? If so, you could record a macro (in the personal macro workbook, so it's always available) while you're hiding the usual ones, and run that each time maybe?

Yeah, same columns, this is what I need to do, I think...

Link to comment
Share on other sites

OK, you'll probably end up with something like this-

 

Sub Macro1()
    Range("D:D,J:J,K:K,L:L").Select
    Selection.EntireColumn.Hidden = True
End Sub

 

But you don't have to select objects in VBA to manipulate them, so you can shorten it to the below, and change the name to something meaningful. Then just run it from the Macro menu whenever you open the daily workbook.

 

Sub HideColumns()
    Range("D:D,J:J,K:K,L:L").EntireColumn.Hidden = True
End Sub

 

  • Upvote 1
Link to comment
Share on other sites

Yeah, if it the hiding bit that was key I was going to suggest a macro. Never properly learned how to write them so was just going to suggest experimenting with recording one (as trial and error is my approach).

 

Another way is to set up a two tab spreadsheet, one which you'll dump the raw data in, and the second with lookups for your relevant columns (just =B2 etc, would do it). Bit rough and ready, but quick. Not robust enough to share, but useful for quick reviews/troubleshooting if you know the data.

  • Upvote 1
Link to comment
Share on other sites

1 hour ago, Pidge said:

Yeah, if it the hiding bit that was key I was going to suggest a macro. Never properly learned how to write them so was just going to suggest experimenting with recording one (as trial and error is my approach).

 

Another way is to set up a two tab spreadsheet, one which you'll dump the raw data in, and the second with lookups for your relevant columns (just =B2 etc, would do it). Bit rough and ready, but quick. Not robust enough to share, but useful for quick reviews/troubleshooting if you know the data.

They're actually quite interesting to write, there's a ridiculous amount you can with them, probably too much to be honest, hence why they tightened up security on them.

Link to comment
Share on other sites

Is this data dump coming from an internal source or external provider?  Sounds like something SQL is perfect for if from an internal system.  I went on a 2 day SQL course and was able to pull out Oscar winners and movies by year, actor and director on a whim, but then I went back to the office and it was a fuck load more difficult when using it for real work.  Rather than go on another course we employed somebody else to do it.  *dusts hands*

  • Upvote 1
Link to comment
Share on other sites

23 hours ago, Furmedge said:

Is this data dump coming from an internal source or external provider?  Sounds like something SQL is perfect for if from an internal system.  I went on a 2 day SQL course and was able to pull out Oscar winners and movies by year, actor and director on a whim, but then I went back to the office and it was a fuck load more difficult when using it for real work.  Rather than go on another course we employed somebody else to do it.  *dusts hands*

Internal, I defo need to go on one of them courses.

Link to comment
Share on other sites

You'll probably all chuckle at how hilariously short sighted this is, it asked me to add a short cut for the recorded Macro, I chose ctrl f, which means when I went onto to all the other excel sheets I couldn't shortcut to find data because I'd replaced that shortcut, oh dear, I've muddled about and fixed it now.

  • Upvote 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...