I am fairly new to VBA and I mostly write my scripts by recording (and cleaning it up), or looking on forums / websites for help and I try to addapt scripts to my needs.
However now I'm totally clueless what to do with my following hurdle in my project.
For each item in image below, where there is a value under the field with the date, I want in a new worksheet a separete line for each value with the corresponding reference and date.
But in the new sheet (result sheet), I don't want the reference, but the relating product number, that is found in yet another sheet (so by means of a lookup I assume ?), I will also need an PO number and PO line number, also found in the Master data file, and the date (twice).
The format of the result find cannot by changed , it needs to be uploaded in that format.
example of my confirmation file
example of masterdata file
result sheet
Actually I need to do a lot more actions but if I could get some help how to get started, that would be appreciated.
I searched online and in forums but I have no idea in what direction to look.
Related
I am attempting to find a solution with either excel or visual basics.
I have an expanding column of remarks on multiple sheets that I need to search through for a keyword (I’m using the word “change” or “chang” to capture “changing” when needed)
When this keyword is found, I need it to give back the cell address, along with a defined name I’ve set up (one for each sheet).
I was able to make a table on a “summary sheet” to include the “new comment”, address, and defined name, and it works well enough. My only concern now is if I add a new row and therefore add a new comment in the column on one sheet, I will have to go back and add a row to my table, and make sure the address and defined name are also corresponding to that “new comment”. This will get very messy and errors can occur, especially since I could have 20+ sheets.
So far all I have been using is excel formulas. But I have also been playing around with excel macros to try and accomplish this (with no luck).
Any help would be greatly appreciated! And I of course can explain this better if need be.
Edit: I added a picture of the general basis of what I’m trying to accomplish. I can’t add the code I’ve been trying as it’s on my work laptop- so I made a simple mock-up of my sheet to include here. I took pictures of the highlighted cell in sheet 1 to show the formulas, and then a picture of sheet 2.1
I am working with a Table inside of excel. I would like to have it so the number documents in the table are hyperlinks back to my file folder.
I am finding that the Hyperlink formula will not work in the table. Using the same formula outside of a table it seems to work.
I have the below formula in the hyperlink link_location:
=LEFT(CELL("filename",A1),FIND("[",CELL("filename",A1))-1)&
INDEX(Sheet2!$H$3:$I$19,MATCH(LEFT([#Number],1),Sheet2!$H$3:$H$19,0),2)&
"\"&[#Number]
In the above code;
The first part of the code identifies the file location.
Index in the code returns the name Processes for P for the Number (P009).
Returns: R:\Integrity Management\2. Document Control Management\Processes\P006
Error window coming up says: Cannot open specified file.
Ultimately it would be great if the "Number" items would hold the hyperlink instead of a separate column.
Current table set up
Not sure why. The links are currently working as intended today. If anyone has a reason why this issue occurred please let me know.
So I'm working on a google sheet project where I and a few others will be keeping track of every movie we watch and then scoring it from 1-10. Since this is a long-term project, the list of movie titles will get quite long and I'm trying to think of a way to notify the inputter if the movie title they're writing already exists further up in their column. Assuming it's an if-statement of some sort but very new to excel and google sheets.
Anyone have any ideas?
You might try to create validation rule for the range of cells. Right button click on the cell -> Data Validation...
Or see the link below for details
Google sheet value validation
Same solution might be implemented for MS Excel sheets
I have used conditional formatting for this. Lets say movie names are in column A. The below code would highlight duplicate entries.
=COUNTIF(A:A,A1)>1
The only issue is if there is a Typo in the movie name you could still end up whit duplicates. Example
Ok this is a tad complicated to explain and im guessing even harder to solve. Im trying to automate a debtor's list at my work so we don't have to manually change it every week which can take hours. Currently we have one master file that contains all amounts owed to us and another that lists all outstanding amounts and any information on that client relevant to the invoice.
The master file is automated from a CSV file however i am attempting to integrate the overdue list into this and make it automated as possible. This issue im having is if i automate the debtors list then any comments i have are also erased
Client-----Invoice #-----Amount-----Comment
X----------1-------------400--------Will not pay until (###)
Y----------2-------------500--------Having an issue with designs
Z----------3-------------600--------Something
What happens when i automate this is that the comments remain however all the other columns are replaced with the current data which messes the entries up. Essentially what i thought to do is the following however im not sure how to implement it.
Have the master debtor list on one worksheet and another sheet for the debtor's and comments
Using a formula the 2nd sheet will extract values from the master sheet based on the following:
If the invoice number is on the master list and not the 2nd sheet then all information will be copied to the 2nd sheet.
If the invoice number is on the master list and the 2nd sheet nothing will be done
If the invoice number is on the 2nd sheet but not on the master list the information will be deleted
I basically want the information to be retrieved if it isn't there, deleted if it isn't on the master list and left alone if it is on both already. This will therefore let people add comments but automatically delete once payment has been recorded.
Any help would be fantastic as ive tried a huge amount of If, vlookup, match etc and can't seem to get the result id like.
Okay, Im setting up a spreadsheet that will track employee progress. Im new to vba and macro programming in excel but am not foreign to programing in general. Any assistance would be greatly appreciated. What I want to do is as follows.
Start off with 3 sheets (roster, log, Total) The log sheet will have all the tracking metrics of each employee.Total will Total each employees log sheet together and roster will be a dynamic employee list. As a new entry is created in roster then I want to copy the log sheet and rename it by the name put into roster and add the new (named) sheet into the Totals calculations.
For arguments sake just say that each log sheet only has a numerical value in a1 and total is just tallying all log sheets a1 fields. Roster contains just a first name in column A and no other data. (Given direction I should be able to expand the concept to a more intricate set of sheets.
Additionally it would be interesting to be able to remove a name from roster and have the said log sheet be deleted and removed from the totals formula... :D
Again Thanks for any assistance.
I have seen people try to make excel work like a database and it is ultimately doomed to failure. As this is a green field project I would start it right and use some sort of database. The choice is yours depending on your skillset, hardware available and what it will be used for. A good starting point would be good old MS Access, it is quick to learn and in the right hands very powerful. If it is going to be higher use then maybe look to a server based data store such as SQL server and write the front end in anything you want (Access, vb.net, asp.net etc)
The point here is choosing the right tool for the right job, spreadsheets have their place but databases they are not