|
I have a spreadsheet with two columns showing order numbers. One column(A) is all open orders from yesterday, the next(B) is all open orders from today. Is there a way that I can have it so when I input the data into column A and B it extracts the unique values in column B to column C? Right now I'm using conditional formatting to highlight the unique values in red and then sort by red however I'd like to automate it if possible.
|
# ¿ Dec 8, 2017 23:22 |
|
|
# ¿ May 11, 2024 08:32 |
|
SymmetryrtemmyS posted:Is this what you want to do? Thanks for the help! This does get rid of the duplicates however leaves empty cells where they were. Any way to just put them in a column with no spacing?
|
# ¿ Dec 11, 2017 15:43 |
|
Just a general question but I'm just starting to learn VBA so that I can automate some tasks that take me 30+ minutes to complete each day. One portion I need to add formulas to 5 columns, about 1k lines and it takes a few minutes to complete. I do hide what's happening to speed it up a bit. Is VBA just really slow with pasting a lot if data into cells?
|
# ¿ Oct 23, 2018 02:07 |
|
mystes posted:Interacting with Excel stuff through the object model is slow so you want to minimize the number of times you do it. Hmm the base of the formula is the same, but it changes to reference a different cell each time. I'll look into arrays and see if that'll help at all as there are a few times I'll need to be doing this with slightly different formulas. It wouldn't be terrible if it just did it all in the background but it seems to lock up any other workbook I'm using so it makes my machine worthless during the run time.
|
# ¿ Oct 23, 2018 02:31 |
|
Thanks all! Setting it as a range formula did the trick. I had a loop that would paste it to each cell, don't the range formula makes it almost instant. Thanks again!
|
# ¿ Oct 23, 2018 15:50 |
|
Back again. Is there really no way to have a cell be truly blank when using a formula? For examplequote:Range("B1:B" & lRow).Formula = "=IFERROR(VLOOKUP(A1,Sheet1!A:B,2,FALSE),"""")" Will still return a blank value if nothing is found in column 2. I did find this, and it does work, it just seems like a bit much to a simple problem. quote:
|
# ¿ Oct 25, 2018 04:18 |
|
So I have part of a macro that I need to run on the 15th each month, or next working day. Is there an easy way to do this? Right now I have it check if today is the 15th then run, or if it's either the 16th or 17th and a Monday then run. However doing it this way wouldn't count for holidays, and I'd have to add a bunch of checks to work around holidays. I'm thinking I should be able to use the workday function, but can't seem to figure out how to apply it to this scenario.
|
# ¿ Nov 15, 2018 17:54 |
|
mystes posted:Basically you just want to run your thing on the date workday(dateofthe15th-1,1) right? So like this? Seems to work! quote:Sub test2()
|
# ¿ Nov 15, 2018 19:30 |
|
I have a few users that work in duplicate worksheets but different data sets. For example : Order number | date worked | note Is it feasible to import their data to a central worksheet? I'd eventually like to pull and push data to this central worksheet. Will I run into massive slowdown from accessing the worksheet frequently to pull and push this data?
|
# ¿ Feb 14, 2019 02:33 |
|
I've been learning vba during my free time at work over the last year to automate some tasks and now a few other teams learned that I know vba so now I'm just coding vba all day, with the goal of automating the formatting of about 20 different workbooks. The formatting used to take a few hours to do, and now it takes minutes at most. I should ask for some sort of raise right? My biggest concern is that if any of them been I'm the only one that would be able to fix it. Job security I guess.
|
# ¿ Jun 8, 2019 02:48 |
|
Yeah that's true. We just use it to create categorized spreadsheets of data that we pull out of sap. Manually formatting it which they have been doing for the last 5+ years just takes forever and I'm amazed some other solution hasn't already been done. With that said, I am learning Blue Prism in the next few weeks so that should be able to automate a bit more of the work as well. Hopefully that's something useful to add to my resume.
|
# ¿ Jun 10, 2019 19:12 |
|
Probably not the best way, and phone posting, but try this. Put starting date in f1 ending date in f2 or adjust as needed. =Sumifs(c:c,b:b,">="&f1,b:b,"<="&f2)
|
# ¿ Nov 6, 2019 22:19 |
|
Yeah just loop though it. Can use this too, just change the range to the needed column. quote:Sub test()
|
# ¿ Nov 12, 2019 18:59 |
|
Kind of have an interesting issue. I'm working on making a Dashboard and want it to look nice. I'm trying to set the background cell color to blue, however when the pivot tables resize it resets the cell colors to white. Is there any way I can keep them blue? Or, is there a way that I can force the height of a pivot table? Adding a scrollbar would be fine.
|
# ¿ Nov 22, 2019 18:43 |
|
hmm trying that seems to change the pivot table themes and colors, but just the worksheet colors will still change if the pivot table is resized. From say 15 rows to 10 rows, the 5 rows will now be white instead of blue. Edit: Found kind of a dumb workaround. I took a screen snip of some of the blue, and then just loaded that as a background image. Seems to work. Harminoff fucked around with this message at 20:10 on Nov 22, 2019 |
# ¿ Nov 22, 2019 20:03 |
|
Does anyone know of a way to filter data by wildcard in power query? For example, I want to filter out Filter this out Filter that out I'd think you could do Filter*out To catch both, but it doesn't seem to work?
|
# ¿ Feb 6, 2020 17:02 |
|
LawfulWaffle posted:Triple posting, sorry, but I have something more manageable than the previous questions (I figured out how to use macros so I made an easy way to fix that previous error). Sounds like you can just the =countif() function for this. Then just filter for 0 in that column to pull out any rows with zipcodes it can't find.
|
# ¿ Apr 6, 2020 19:54 |
|
You should be able to query the first table (look into power query) and then just use refresh all to update it.
|
# ¿ Apr 8, 2020 19:32 |
|
Yeah looks to be way more complex than it should be. Found this https://www.youtube.com/watch?v=6PcF04bTSOM
|
# ¿ Jul 23, 2020 02:36 |
|
It also only works with excel online files, mostly with just tables too if I remember correctly. I have to do some dumb poo poo like have excel scrape data from multiple workbooks using vba, compile it and send a report using vba yo email, then upload some stats to SharePoint using vba so that I can create power bi dashboards using that data. Pretty crazy and I'm sure there is a better way to do it. Hopefully office script can help with some of it.
|
# ¿ Sep 13, 2020 21:06 |
|
Have you tried anything with Power Query yet?
|
# ¿ Dec 16, 2020 19:34 |
|
Should be able to import with power query and than refresh that to get updated data. No need to copy/paste
|
# ¿ Dec 30, 2020 23:30 |
|
Looks like this would work https://excel.officetuts.net/en/formulas/index-match-or-vlookup-to-return-multiple-values Though yeah seems way easier to just use a pivot table and filter.
|
# ¿ Feb 23, 2021 17:41 |
|
Alternatively throw it into power bi and do it in like 3 clicks. Just use the free version and and send a screenshot if you don't have a premium license. I used to make a bunch of visuals and dashboards in excel, but gently caress thatm power bi is just so much easier at that stuff.
|
# ¿ May 8, 2021 02:33 |
|
I'd look into the Filter function if you have a newer version of excel. It can filter and spill all the data where you need it. https://www.youtube.com/watch?v=4Fgb8qp0NxU
|
# ¿ Jul 21, 2022 00:36 |
|
Rakeris posted:Anytime I see these new functions, I get annoyed that my work has not upgraded us to desktop O365 yet (we can only use the web versions), so many nice changes in excel. drat so no xlookups? I'd dread having to go back to vlookups and index/match
|
# ¿ Jul 21, 2022 05:36 |
|
Don't know how new it is, but flash fill (cntrl e) is pretty amazing https://dollarexcel.com/what-does-ctrl-e-do-in-excel/
|
# ¿ Jul 21, 2022 14:06 |
|
Learning macros/vba doubled my income. Do it
|
# ¿ Jul 28, 2022 23:27 |
|
Is anyone watching Excel Esports on ESPN? https://www.youtube.com/watch?v=x1RVNGDSdw4
|
# ¿ Aug 10, 2022 17:58 |
|
Understandable. Syncing slicers in excel is a pain in the rear end. That's trivial to do in power bi.
|
# ¿ Aug 11, 2022 02:42 |
|
The easiest way would be to just put it in workbook activate/deactiviate Put this in the ThisWorkbook module Private Sub Workbook_Activate() Application.MoveAfterReturnDirection = xlToRight End Sub Private Sub Workbook_DeActivate() Application.MoveAfterReturnDirection = xlDown End Sub This way, whenever you click onto that workbook it'll change it to the right direction. When you click into another workbook, it'll change it to down.
|
# ¿ Oct 13, 2022 17:10 |
|
Can you try putting the text formated as you'd like it and then press Ctrl+e (it should be flash fill but it's only available in the newer versions of excel)
|
# ¿ Oct 14, 2022 03:27 |
|
I'm just getting into sap gui scripting with excel/vba to automate a bunch of our work. About to push my first build to production! It's crazy how well it works and how fast it is. It's taking 8 hours of manual work down to less then an hour! Lots of trial and error though. Not a lot of documentation so kinda hodge podged it all together.
|
# ¿ Nov 19, 2022 14:06 |
|
Xerol posted:I have a sheet of data, which I am able to filter(unique()) on to get a list of names. I want each of these names to be repeated 3 times in the output, so e.g. if my formula is in A2 I want Data!A2 in A2, A3, A4; Data!A3 in A5, A6, A7, and so on. Is there any way to do this without macros/VBA? I asked chatgpt exactly what you asked, and it returned this =INDEX(Data!A:A, ROUNDUP(ROW()/3,0)) which does work. drat that tech is crazy. quote:I have a sheet of data, which I am able to filter(unique()) on to get a list of names. I want each of these names to be repeated 3 times in the output, so e.g. if my formula is in A2 I want Data!A2 in A2, A3, A4; Data!A3 in A5, A6, A7, and so on. Is there any way to do this with a formula? quote:Yes, you can use the INDEX and ROW functions in combination to repeat each name from your list 3 times in the output. Here is an example formula you can use:
|
# ¿ Jan 24, 2023 21:49 |
|
Lib and let die posted:Small Excel Questions Not Worth Being Answered by a Human It's crazy how good it is, like just trying AG3's question gives working results. quote:Yes, it is possible to use VBA to accomplish this task. You can use the "Find" method to search for the specific number or text string in the specified column of the other sheet, and then use the "EntireRow" property to copy the contents of the entire row containing that string to the current row. Here is an example of how you can accomplish this using VBA: Of course, this one would need a little edit to see the other workbook instead of looking up the current one, but the code does work and is a good starting point. Here is what I get by editing the quesiton a bit quote:Sub ImportRow() you could then use a shortcut and press that to bring the data over. Harminoff fucked around with this message at 23:11 on Jan 24, 2023 |
# ¿ Jan 24, 2023 23:08 |
|
Does this do what you are looking for? Put it in sheet1 instead of its own module. I have two sheets, one called sheet1, and the other called data. Data has things like 123|tom|bob|roger in sheet1, if I type 123 into cell a1, it will then become 123|tom|bob|roger code:
|
# ¿ Feb 15, 2023 16:57 |
|
Sounds like it wasn't saved as an xlsm but just xls.
|
# ¿ Jul 13, 2023 16:23 |
|
Just a heads up but vlookups have been replaced with the much better xlookup. Soo much easier to use and can return value on either left or right
|
# ¿ Sep 9, 2023 16:08 |
|
|
# ¿ May 11, 2024 08:32 |
|
Get power bi, it's free. Then you can just use power query to join them all, and make a really slick looking dashboard.
|
# ¿ Feb 8, 2024 07:07 |