I have a number of spreadsheets, all of the same format, saved into ("C:Email Attachments").
I wish to populate a master workbook, using a macro to loop through all of the workbooks in that folder, copying all of the data (Starting at B52-Q52) using Selection.End.Down, as the row count is always different and pasting it into the master workbook. Sometimes there may only be one row, so an IF statement may be required, to say if there is nothing in B53 then don't do Selection.End.Down. The overall result would be for all of the data from each spreadsheet is detailed as one big list in the master spreadsheet.
I have attached a document paralleling a document I am working on. The dollar amount in each spreadsheet represent sales. I have entered in values into the candy, soda, and chips spreadsheet. I have also linked values for candy into the total spreadsheet. My question is can I somehow type something or drag the formula down to populate the other cells in the total spreadsheet?
The idea I am thinking but which I don't know how to implement is to list all the items (as in column G) and list all of the relevant cells (e.g. B1 in the Candy spreadsheet) as in columns H and I (Note that all items will have the same cells but the cells will have different values...e.g. all three items have a cell B1 and B2 in their spreadsheet but these cells contain different values). I then try and fail to create a formula in cell B3 of the Total spreadsheet. I am trying to create a formula of the following nature:
='(Spreadsheet Name From Column G)'!(Cell Name From Columns H and I)
The Second half of the formula doesn't really concern me (i.e. the cell name from column H and I). However I am perplexed as to how to achieve the goal in the first parentheses above.
I have a Main Customer Spreadsheet. I want to Auto Populate FROM the Main Customer Spreadsheet to a New Spreadsheet. I want to be able to key in a customer name on the New Spreadsheet and take the info for that customer from the MAIN Spreadsheet and fill in the blanks. I need to be able to do this several times a day.
I’m looking to use a user form to populate a quotation template, I have been able to link the first part of the form to the sheet as these are static cells but I’m struggling in getting the items details area of the form to work as I need. Below is a brief description what I need.
Item Details area
Move down a line after every time the add button is pressed and clear contents of the text boxes for the next item.
Also I want to make each * denoted item required before you can add a new item
I’ve uploaded a copy of the file if my description isn’t too clear
I have a spreadsheet that contains an email address (Each row will most likley have the same email address but there are occasions when it could be different). Ideally I want a button that when clicked will open up an email, popoulate it with the persons email (that is in a specific column and row), add a subject and some text to the main body of the email and then attach the spreadhseet itself.
I run a web query to populate a table in my spreadsheet. The data is dynamic - and on some days, I will get a couple of extra rows in the table (its weather data, so e.g. when its raining, they will forecast an extra row of how many mm, etc...)
To give a simple example, right now I use Hlookup to locate the value of F3 (the date) in my dynamic range of B26:G26 and step down 3 rows, where my needed temperature values are for that corresponding day. This works great like this already: =HLOOKUP(F3,B26:G29,3,FALSE)
The big issue is...what happens if my target values are not always 3 rows down? If the query refreshes with any extra rows, this reference is shifted. (Well, my starting "Anchor" is shifted)
I have a main spreadsheet that I am consistenty adding information to. The columns are : Company name, Contact, Territory, and Status. The main spreadsheet is titled "Main". I want 5 additional spreadsheets in the same workbook that are automatically pulling information from the "Main" spreadsheet, and populating the appropriate spreadsheet . For example...I have 500 entries of different companies in "Main". All of these companies are either categorized as "North, South, East, West, Offshore" in the Territory column. So, I would like my workbook to have 6 tabs...one "Main, North, South, East, West, Offshore." As of right now, I am Sorting the column, then copy and pasting into correct spreadsheet manually.
My question, and it's my first one here, is regarding the use of ListViews in Excel forms. I need to populate it with a range of several columns with data from a spreadsheet.
I have a word template that gives a popup when started for the user to fill out. At present this is okay, but it is hard to maintain. So what I want is to be able to add all needed information in Excel - since our tools have the possibility to export my needed info to this.
I have a spreadsheet in Excel 2010 named 'Input TR'. This info I want in the popup macro in word. When choosing name from a dropdown menu - I want Excel to give me the choices instead of having it in the coded macro. After I have choosen the name - I want the product belonging for this name in the 'Product/Service:' dropdown menu, e.g Test 1 will give the value 1...5. (I will only be able to choose one of them)
Today - everything is coded in the word2010 macro, and thus difficult to maintain.
What i would need is a script so that it doesn't look at those specific cells but a range of cells and every time the button is clicked it will fall into the first empty cells.
So example when button is clicked Case 1 if cells C242 has something look at cell C243 If cell C243 has something look at cell C244 If cell C244 has nothing then enter data that goes with that button. I have around 6 to 7 different buttons.
I'm trying to get some vba to automatically find the range of data in a spreadsheet (So start from a specified point and loop until it's blank) and populate a combobox with this range accordingly. I have read numerous articles and posts but nothing seems to work!!
I am working on a macro that copies tabs from the spreadsheet the macro (button) is located in, creates a new book for them, and then pastes values so that no formulas still exist. The problem I am having is with named ranges. The named ranges do not reference the new sheet, but rather the old spreadsheet. This is fine because the new file is solely for presentation, however, one macro (which selects print ranges based on user selected checkboxes) tries to reference the old spreadsheet once it runs. I would like the macro that I currently have working, to also make this macro in the NEW spreadsheet so that it can still highlight the correct print area when used. The macro does not reference the name of the workbook at any point, it is purely "Range("ai10") type references so I don't understand why it is trying to open the old sheet back up.
I am trying to write a macro to populate column A "main sheet"with all data from column A "info sheet", Also, in the "main sheet" Column B add a Batch number from a static cell value B5 in "Settings Sheet" every time we have data in Column A. then insert the today's date in Column C "main" every time we have data in column A.
I put a sample of the data I want to see in my "main sheet" ...
I have a problem after filling in some forms on specific third party site;
After filling in all fields and giving the order to save the info, the fields which had the correct info return to blank, and nothing gets saved on the web page...
Here's how my code looks like...
Sub testing() Dim IE As Object Set IE = CreateObject("INTERNETEXPLORER.APPLICATION") IE.NAVIGATE Range("a1").Value
I'm trying to take list off a sheet called List ( attached pic ) and populate the table on a sheet called I-O List, there is already a formula to get the Module type and calulate the data, on the list it shows how many Inputs and Outputs it has so I need it to look like the final pic I attached, it will basically say if inputs = 16 it will start at 0 and go up. I just don't know how to populate a table, and count up from 0. and the last objective is theres a column called X if the cell is empty I don't want to calculate the line on the list, if it = X then I do.
I have a spreadsheet for work rosters. Each person on the roster has a row with info on what they're doing for a given week. Split into the am and pm session of each day.
All I want to do is be able to fill the row with the same value if they're doing the same thing for the week - eg if they're on leave, I'd like to hit CTRL-L and have the row populated with 'LEAVE' in each alternate cell, rather than typing it manually. Note that it is each alternate cell, not each cell as the alternate cell has different info.
For the am and pm session of the five working days. And just to complicate matters, each 'cell' on my spreadsheet is actually 4 merged cells, and the alternate 'cell' that I want left alone is two merged cells! This is the macro generated when I do a simple record - it does what I want, but obviously jumps to the original row that I recorded it in whenever I run it - I need it to fill the row that I start it from. I recorded starting in cell I133:L134
I have a workbook with a list of names ("Roster"). The names are on sheet 1 in column B (about 200 names). I have another workbook with a participation form ("Form"). There is a field on the form for the name - sheet 1, cell A4.
populate the "Form" with the names from the "Roster". Each person should get their own form. Once the name is populated from the "Roster" it should save the "Form" as their name. Then the next person on the "Roster" should have their name populated on the "Form" in that cell and saved as their name, etc.
I'd like to create a macro such that when a person's name is typed in a cell, a separate set of cells populates with data pulled from a worksheet containing the person's data.
So, for example, I have created a scorecard template. Rather than have 50+ scorecards for each individual, I'd like to have one template upon which the individual's respective data can be pulled into the appropriate cells based on the name entered in another cell on the template (or a pop up in which the name is entered).
I currently have a long winded formula in all the cells that just slows the whole sheet down, the populated cells range is M6:BM5010 this is the formula i have been using which works but slow !
I'm in a situation where I need to find a workaround for a circular argument. I've decided that having a macro to run would work rather than have a formula in the cell I want populated.
Objective: I need a macro to either completely ignore the contents of A31 or to change A31 based on the contents of B31. Sometimes there's a B32. Sometimes there's a B667. In which case, this would need to work for all cells A31-A667.
If B31 contains CHERRY or PEACH I want A31 to be altered to say TASTY. IF B31 contains SLIME I want A31 to be altered to say NASTY. If B31 does NOT contain, CHERRY, PEACH, or SLIME I need whatever is already in A31 to remain unchanged. This would need to continue down the rows until there are no more contents in column B.
Best guess: I like said - I'm awful. All I could come up with is an IF statement that isn't even complete. =IF(ISNUMBER(SEARCH("PEACH",B31)),IF(ISNUMBER(SEARCH("CHERRY",B31)),"TASTY",(some formula
that doesn't change the contents of the cell))
But that's something I would have in cell A31 rather than a macro
I am comparing each cell of column A with Column D to match it. I have almost 60,000 records in each columns. Now, I want to show the result of the mismatch in column B as "No Match".
Below is a sample of what I am trying to achieve.
A B D
adam No Match Bill Wales Charlie Charlie Denny Charlie Wales
I tried to record a mecro with formula (=IF(ISNA(MATCH(A2,$E$2:$E$65536,0)),"No Match","")). It works fine with fewer records but when i try it with my original file it fails.
I also tried to write a macro without formula but no success. It only worked well with fewer records.
What am I doing wrong? Is there anyway to solve this?
How to create a macro using the same formula (=IF(ISNA(MATCH(A2,$E$2:$E$65536,0)),"No Match","")) I used to run it manually.
If I put this in VBA: Range("AK1").Value = Application.VLookup(Range("B3").Value, Range("DateRange"), 2, False)
I get #N/A. I'm stumped - any ideas why this would happen, or how I can work this into my code? I need the vlookup to occur 1000s of times, and don't want to have to put the formula in the spreadsheet because I just want the results, not the formula.
i have two fields with dates - one field A1 for date authorised (for a data request) and one field B1 for date actioned (data request)
i need a formula to populate in C1 the following:
if A1 is blank then C1 is 'not actioned' if B1 is blank then C1 is 'not complete' if both contain dates then C1 to calculate the number of working days between the dates eg. A1 10.08.09, B1 11.08.09...C1 = 1 working day
I have a userform which inputs data based upon a chosen item from a combobox. Combobox3 pulls numerical items from Rows17 and below in columnA of active worksheet. The first problem I am having is that the combobox itself is cutting numerical numbers short. Items go out to the thousandths (ex. 1.001) but in cases where there is a "0" at the end of the decimal it abbreviates it (ex.1.01) is there anyway to fix this? The second issue is I would like to populate "Textbox4" with the columnC content of the item chosen. (Ex. User choses Item 1.001 (found in row118) then Textbox4 would = the value of C18) Below is the current code utilized for this userform.
I have a spreadsheet with data populated down column B. This size will vary from day to day so is there a macro I can run that will populate Column C with a formula based on their being data in the adjacent cell.
I think there's a way to use Excel to automatically create a 5-day calendar. Maybe a macro?
The date format must be dd/mm/yyyy hh:mm and it must be in text format. If its June 9, 2012 at 6pm - the correct format is: 12/06/2012 18:00
I want to post 5 times a day: 09:05, 9:55, 10:45, 16:55 and 18:00.
Column A is where the date and time goes. Ideally, I'd enter in A1 the start date and then run a macro that would automatically populate the next 5 consecutive days with the specific times above (so 25 rows total in column A).
I have to save the file as a csv file, so the date and time format has to be in text or I'll get an upload error in Hootsuite.
I have a sheet with a data dump containing data on several railcars, taking up approximately 500 rows. Some railcars take up multiple rows, one row for each unique customer, and one railcar can have up to 5 customers' goods on it. What I need to do is get this information separated out onto monthly sheets, based on the departure date of the railcar. Every row of data in the dump has a column with the departure month I need in it, so that would make it seem easy. I have 12 sheets created one for each month, with the same headers as in the dump.
The two tricky parts:
1. The data in the dump is not sorted by railcar number, but the results in the monthly sheets need to be.
2. I don't believe LOOKUPS will work because rows in the dump repeat railcar numbers because of the multiple customers, and each of those rows has to be brought over to the monthly sheets, sorted and subtotaled by railcar number.
Finally, every week or so, I'm going to want to drop a new data dump in the dump sheet and need the monthly sheets to update dynamically. The new dump won't simply be rows added on to the same data as before, all the rows could be different. If this is solved most easily with a macro (i.e. drop the new data in the dump sheet, press a macro button and it populates the monthly sheets)