I have a thing about named ranges and cells, but was wondering if there is a way to create names for multiple cells using set criteria. I think the best was to explain this is with an example that I have attached. Ideally I would like to name the individual cells in the range C3:d4 by concatenating the right column and bottom row to give one unique name. However this doesn't combine them. I have listed the names that they should be and corresponding cell in C8:D11
The easiest way I can describe the scenario I am trying to create, is to use a company list of personnel (my index) and to generate a time-sheet workbook per person based on a pre-populated template. This time-sheet is saved as the persons name and has the persons name entered into cell D:10
I have a workbook which contains two worksheets;
1) An Index sheet which contains a list of names that I wish to use in Q16 downwards (note the length of this list will vary each time I run this)
2) A "template" sheet which I wish to duplicate in new workbooks
3) A second "data" sheet that I wish to copy across in new workbooks
I need a macro that will take the "template" and "data" sheets and copy it into a new workbook, renaming each new workbook to each name in my Index sheet. I also want that same Name to be copied into cell reference D:10 of the "template" each time.
The end result is that I should have a series of new files generated and saved which are named the same as the Index list, with both the "Template" sheet and the "Data" sheet present, with the cell D:10 pre-populated with the Name provided in the "Template" sheet.
My current project involves sorting a spreadsheet, selecting specific qualifying data from the sheet, storing it into a variable, the pasting the individual values from the list into individual cells on a different sheet within the same workbook. Here is the code I have so far...
Code: Sub Test() '' freeze screen updating to remain on main worksheet Application.ScreenUpdating = False '' move to Avaliable worksheet [Code] ..
When this code runs the first item in the list pastes into Sheet10 A1, but no other values from the list are placed into Sheet10. Previous to this I had been using a variation of this code to push the list into a combobox list within a userform. In that case instead of
Code: ThisWorkbook.Worksheets("Sheet10").Range("A1") = x
I had
Code: Combobox1.list = x
And this worked perfectly; creating a list within the combobox (in fact I can use this modification to interrogate my code to determine if the list is being properly generated, and it is).
So I have a list of organizations in Column A, with multiple names (anywhere from 0 to 50 names) for each org. in Column B.
Org Names Company A Brown, Jones, Smith, West
[Code]...
I want to do a find and replace for all of Column B, where all the names are replaced with their respective color values. If possible, I'd like this to all happen with the individual cells (so for example, B3 might go from "Brown, Jones, Smith" to "Red, Red, Blue").
If that's not possible, I could divide all the names into individual cells and then find and replace.
I have a spreadsheet full of data that I download from a database and dump into Excel. (I also dump it into a financial software package to generate payments). The problem is that there isn't a good option in the financial software for creating a statement to send with the check. So the recipients oftentimes can't determine why I am paying them what I am.
What I end up with in the Excel spreadsheet is approximately 800 rows by twelve columns of data. Some customers have one row of information, while others may have up to six or seven. Out of the roughly 800 rows are about 400 clients.
What I want to do is create a separate statement for each client that shows the information in the row, will show the one to seven rows of information, and will total the sums. Then I can stuff the individual statement with the check that matches it and my clients will have a better understanding of what I am sending them.
example
Invoice# - client #1 - date1 - date2 - # of days - amount - reason - rate Invoice# - client #1 - date1 - date2 - # of days - amount - reason - rate Invoice# - client #1 - date1 - date2 - # of days - amount - reason - rate Invoice# - client #1 - date1 - date2 - # of days - amount - reason - rate Total
Invoice# - client #2 - date1 - date2 - # of days - amount - reason - rate Total
Invoice# - client #3 - date1 - date2 - # of days - amount - reason - rate Invoice# - client #3 - date1 - date2 - # of days - amount - reason - rate Total
At work, we've got a program that outputs the results of a search into an Excel file, in column 1 below.
17,43,61,63 17 43 61 63
23,29,53,57,77,79 23 29 53 57 77 79
17,29,63,69,71,75,79 17 29 63 69 71 75 79
11,43 11 43
57 57
I need to get that list of numbers listed out to the right, with one number per cell. The list in column one could possibly contain from 1 to 20 numbers, and the last number is always without the comma after it.
I have a mass of data which look something like this:
table removed
and I require the ranges of reference numbers to be listed in a column one above the other, which requires inserting new rows. I also need the date & description columns copied down into the newly inserted rows.
So basically for example I would want the top row to now read:
table removed
and then apply the same procedure to the other ranges below this.
I am working with a nonprofit to set up their financial ledgers. There is one workbook with 12 sheets, one for each month. The goal is to be able to set up a formula that searches through all 12 sheets for every donation that a specific individual has made. For instance, let's say that John Smith gave x amount of money on 1/1/2000, y amount of money on 1/10/2000, and z amount of money on 2/2/2000. This data will appear on 2 different worksheets. I have the following formula, which allows me to look through one sheet at a time:
Where Column A in each sheet is individual name, and column B is amount donated. Sheet "Jan" is the data for the month of January, and sheet "Smith" is the culmination of John Smith's donations for the full year. Using this array function, I am able to retrieve all data for John Smith in the month of January, but I can't find a way to make one function that searches for all of John Smith's donations in each month. Is there a way to build an array function in VBA that would accomplish this?
I am trying to create a macro that will create a number of check boxes, which are linked different cells. I have had some success in creating multiple check boxes and having them at the destination I want the problem is that instead of linking to different cells they are all linked to the same cell. I have attached a sample workbook SAMPLE.xlsx
1) Data - the students are listed in Column A, math scores in Column B, reading scores in Column C and science scores in Column D. The grades of 300 students are entered in this sheet.
Student Math Reading Science
Jimmy 75 84 100
[code].....
2) Report Card template - This is the report card that needs to be generated for each student. It's pulling the student name and grades from the Data worksheet.
Student Name =Data!$A2
Math =Data!$B2
Reading =Data!$C2
Science =Data!$D2
How do I create worksheets (report cards) for additional students? I have 300 students in the school. I need the next worksheet to reference Data!$A3. I know how to cut and paste the report card template and then edit =Data!A2 to be =Data!A3 to create a report card for Sally. How do I create the 300 report cards I need?
I've been teaching for 13 years. I can create a report card for each student in my class and edit each worksheet individually for each student. Now I've been asked to do this for the whole school and I don't know how to create the other 299 sheets I need.
I need to create a method to track names. As I add the name in the column of faculty names, I need to be able to track it either below or under another tab. So...
Roberts Smith Smith Jones Skinner Hendrix Smith Jones Thompson
I need this column of information to somehow reflect that I used smith for three classes already, Jones twice, and the rest once (so I do not over-schedule one faculty member and under-utilize another)
debugging issues without changing the code dramatically. I think I've basically "got it" but there are a few lines that I think are problematic. I've written notes to highlight my thinking.
Let me give a basic discription of what I'm trying to do: This file lists where a company has offices. I'm want my subroutine to 1) Sort the cities in alphabetical order (this occurs at the end of the code), 2) for each of the cities listed in "AllCities" worksheet, check whether there is a additional corresponding worksheet of the same city name, and if there isn't one, the subroutine would automatically add it, and 3) delete any worksheet of a city name that is NOT found in the listings found in the "AllCities" worksheet.
I am a small business owner with little experience in Excel and I have been trying to set up a worksheet that will organize my products and finances. I organize sets of various products and sell them in bulk to customers. I was trying to recreate this in Excel so I can figure out the total price for each of these sets and easily edit them.
What I've been trying to do is to take a list of the items and assign a price to each of them. This is on a sheet titled "Prices." Here's an example:
prices.jpg
On a separate sheet titled "Sets," I created lists of items included in each particular set. To easily add or change the products I used drop down menus.
sets.jpg
I would like for the sum of the price of all the items listed under each set to add up automatically in the "Total" row. For example, in cell B7 it should display the number 10. Here is a list of the following formulas I've tried:
I have a form where I have to have the following info on the top left corner of the form for our clients:
TO:Name of client Address, city, zip... Phone number Fax Number
I need to find a way to create a drop down list where I have my contacts information so that if I pick a name, it will show up on my form but also have the address, phone....in the format as above so that I don't have to keep inputting the information manually as there are over 20 names.
I'm writing a purchase order entry form for my company. I've used the above formulas to create drop down lists with addresses for each of our stores and vendors, but I need form to automatically select the correct "ship to:" location. Some stores will always have merchandise shipped to the store regardless of the vendor. Other stores will always have the product shipped to a warehouse location, but in a few stores the product will be shipped either to the store or a warehouse depending on the vendor.
I've been able to work out the formulas for the stores that have shipments always to one location by creating a second address table and linking the selected store to it.
Here is basically what I need:
Store A + Vendor A = Store A Store A + Vendor B = Store A Store B + Vendor A = Warehouse Store B + Vendor B = Store B Store C + Vendor A = Warehouse Store C + Vendor B = Warehouse
Macro for creating new excel work book based on Partner names.
I have a master file which contains 3 worksheets - 1 - Code Summary 2 - Labor 3 - Expense
On column "T" of code summary tab I have a list of Sales Partners. So I want a macro which will create a new workbook for every single Sales partner on Column "T" of code summary tab along with corresponding data from column A:T on code summary tab.
The macro should also take data from the other 2 tabs Labor and Expense for the respective Sales Partners. On Labor tab the partner info is on column "Y" and on Expense tab the partner info is on column "M". So the new file should be renamed after the Sales Partner and have 3 worksheets just like the master file.
Basically I have a master file which has data for all Sales Partners. I need individual files for each sales partner for sending to respective partners.
I have a workbook with 100 sheets and I want to quickly save each sheet as its own PDF file. I was able to find some instructions, but the code keeps giving me an error at the highlighted spot.
I have a spreadsheet with multiple columns, column N contains different countries (some are blank). I want to copy all data in that row (except columnt H) to a new sheet if N = USA.
I am running a loop that changes the value in one cell at a time. Since this is for our entire company, I am trying to make it "idiot-proof" like most of you have done. While in the loop, I want to unprotect a cell, change the value, then reprotect the cell. But the rest of the worksheet is going to be unprotected for now. is that possible? Or do I have to protect the whole sheet, and then .Unprotect the whole sheet first and then. Protect it at the end of the macro.
I am trying to come up with a formula that calculates total time someone has worked in a day. The scenario is an individual will work at a home and start working with an individual. Their start/end times look like this in a pivot:
Min Start Max Start Min End Max End Location A+Counselor A 8:56 AM4:01 PM 1:11 PM 7:00 PM Location A+Counselor B 12:00 AM 8:00 PM 6:00 AM 11:59 PM Location B:Counselor C 7:00 AM 12:00 PM 2:00 PM 4:00 PM Location C+Counselor D 8:00 AM 8:00 AM 4:00 PM 4:00 PM
Some people work split shifts while others work a straight shift. The formula I created was this:
=IF(OR(B9=C9,E9=D9,D9=C9),E9-B9,IF(D9>C9,((E9-D9)+(C9-B9)),IF(C9>D9,((D9-B9)+E9-C9),"New Formula Needed")))*24
(I use a pivot table to show max min for start and end times)
This works great except for the individuals that have multiple punches during the same time frame. The one scenario I am having trouble solving for is when someone punches in more than once during their shift displaying. This occurs when a counselor starts a shift working with one person but then adds another person mid shift. An example of this could be:
Location A+Counselor E Min Start Max Start Min End Max End Consumer 1 1:00 PM 1:00 PM 8:30 PM 8:30 PM Total Time: 7.5 Consumer 2 12:00 PM 12:00 PM 2:35 PM 2:35 Pm Total Time: 2.6
Pivot says that they worked a total of 10.1 because it is grabbing the max and mins and calculating. The actual total time worked is 8.5 hours in reality.
The raw data comes in like so:
Location Counselor Consumer Start Time End Time A A A 1:00 PM 8:30 PM A A B 12:00 PM 2:35 PM A A C 12:00 PM 5:00 PM
Is it possible to add text to individual cells which can be written over?
e.g. I would like A1 to have the background text of "slot 1"... Once user has inserted text then "slot 1" is removed... and when the user text is removed, "slot 1" reappears.
What I need to do is hide the value in an individual cell, dependent on whether a value (any value) has been entered in another cell. I know this must be possible somewhere in conditional formatting but I can't seem to figure it out no matter how much I try!
The table below should hopefully explain exactly what I'm after. I want to hide the value in the balance column (automatically calculated)when no transaction has taken place (ie, there is no date entered in the date column). At the moment this value appears all the time.
I would like to be able to write an article with data extracted from an Excel workbook. An understandable example would be like the books for kids which are personalized.
For example, using this data:
Name Friend1 Friend2 Town State Pet1 Pet2 Karen John Harrold Portland Oregon Snippy Goldie Luke Mike Mark Solon Maine Charlie Max
I would like to write to a text file, vba text box, something like:
One day, B2 went down to B3's house to play a game. B3's cousin, C3 was visiting from D3, D4.
Which would output:
One day, Karen went down to Harrold's house to play a game. Harrold's cousin, Mark was visiting from Solon, Maine.
The text can be simple, no font formatting. The data is coming from different sheets in the same workbook. The data includes text, dates, and numbers.
I have a column that is filled with various car brands that a dealership might sell. The data in the cell may look like CHRYSLER; CHRYSLER; CHRYSLER which I would want to just say CHRYSLER. If the cell says CHRYSLER; FORD; CHRYSLER; FORD I want it to just say CHRYSLER; FORD.