I'm trying to do a nested formula to automatically assign a region number based on what the County is. We have 88 counties we deal with, split into 7 regions. What is the best way to go about setting up a formula to do this, so I don't have to do it manually? I believe the last time I tried doing something like this, I received an error saying that Excel didn't support a formula as big as what I was writing.
I am using excel 2002 and I have found that when the workbook is shared and getting 2 or more users to open the workbook around the same time brings up a read only type prompt box for the 2nd ( and 3rd) user when the book hasn't fully opened for the 1st user/is still fully opening. Is this a limitation within excel or is there a way around this for example via vb code.
I know the more data a workbook has can cause it open a lot slower but is this the same for shared mode.
I am trying to use the validation feature to calculate a check digit and the formula is too long to put in validation. I rewrote the formula to be shorter using math features instead of text, but apparently you can't use arrays in validation. Because of certain distribution constraints, using VBA is not possible so a UDF is out. Can either of these be shortened in anyway? I am not sure if it is even technically possible to solve this problem with these constraints.
Here is the "human readable" explanation of formula: (Accept only 10 digit numeric value.) Example Number: 123456789-3 Digits 1,3,5,7,9 are multiplied by 2 (weighted 5) So 1,2,3,4,5,6,7,8,9 becomes 2,2,6,4,10,6,14,8,18Weighted 5's multiplied values then have their individual digits added (ex:12=1+2=3) So 2,2,6,4,10,6,14,8,18 becomes 2,2,6,4,1,6,5,8,9 Weighted 5's sum is added to the sum of the Nonweighted 4 digits. So 2,2,6,4,1,6,5,8,9,3 becomes 43 Add 24 to sum. 43+24 = 67
Checksum = (10-(67 mod 10)) mod 10 (Sum round up to 10 minus sum)
I am trying to use the IF formula or a similar VBA/Macro to color certain cells. We deal with 16 different sand types that come in on rail cars. I want to put in the sand type in a cell; EX: C11 has text "30/50BH" if this statement is true to color cells A11-D11 yellow. If it is not a true statement to check for the next sand type, "20/40BH" and go on from there. If I can get an example of what to do I can build it for the 16 sands we have.
The formula I have in mind would be something like
I have an xls with over 500 rows of data, every day I have to update the contents of some of the cells, Cell A contains the date and is auto filled already to the end of 2009, Cell B shows me the number of days since I began the sheet and is also auto filled already to the end of 2009, Cell C & Cell D I have to manually enter data
Cell E contains this formula =D527-D526
Cell F =C527/B526
Cell G = =IF(C527=0,0,C527-C526)
Cell H resorts to manual entry.
My question is "why do these columns with formulas, (E,F & G) not automatically carry the formula to the next row?" I'm sure that they once did. Is it a setting that I can't find?
I have made no changes to Excel 2007, but suddenly when I attempt to copy a formula (e4=c4+d4) to a new cell, the result in the new cell is the value from the copied cell (and not a relative copy of the formula). I have checked the Calculation Options and it is set to Automatic. This is an existing spreadsheet that I have used for years. I also tried to copy a formula in a newly created spreadsheet and get the same result.
I have two worksheets, contractor & list. Assume that Column (A) on the "contractor" worksheet is a named range from Column (A) on the "list" worksheet. On the "contractor" worksheet I would like to put in the contractors name, and auto populate the pay value in column (B). I have been using a Vlookup formula, but need to automate this process a bit more.
"Contractor" worksheet - Two columns: (A) I will input the contractors name from a dropdown list based on name range from my "list" worksheet. (B) is where I would like to populate the pay base on column (B) in my "list" worksheet.
I am using Excel 2007, I have a customer sheet and a sales sheet in the same work book. My customer sheet lists all customers with a single entry only each with a unique customer code. My Sales sheet lists at an item level but does include the customer code so if my customer has purchased more than one item the customer code can be repeated on the Sales sheet on multiple rows.
When I do a vlookup to display the amount each customer has spent on the customer sheet, only the very first sales figure is displayed, if further down the sales sheet the same customer has made another purchase I want this figure to be added to the first figure and all I want to see on my customer sheet is the final total figure.
The vlookup formula I am currently using is: =VLOOKUP(G2,Sales!$A$2:$B$1785,2,FALSE),
I'm thinking maybe a Vlookup will not do what I require, maybe I need a different formula/function?
I am working on a sheet that will copy a specified number of sheets, rename them, set a cell within the equal to a cell from another sheet and (the problem) set cells on my input sheet equal to cells in the newly copied and renamed sheets.
I want the cells in sheet "Data Input" to look something like "='newsheet'E26"
I can make it return the actual number in the cell and return the formula in the cell, but not make the cell in "Data Input" reference the cell in the new book.
Here is what I have:
Code: Sub CopySheetsTest() Dim i As Integer Dim wks As Worksheet
In Excel 2007 I know that if you have a cell containing text that you can change the color of parts of that text like This is the text in my cell and this is red text
But I have a cell with a formula that adds text to the end based on a conditional. I can't see any way to change the text color in this situation. I basically want this formula:
=D_Notes & TEXT(CHAR(10),) & IF(Terms = "Budgetary Estimate Only", "Quote is budgetary only and is subject to change pending final design.","")
I'm trying to convert the values entered by users into specific cells into a specific percentage. When I use this macro in Excel 2010, I can enter the value to be calculated directly into the cell and the macro runs automatically. When I open the file in Excel 2007, the macro does not calculate properly unless the value to be calculated is entered into the formula bar.
For example, in Excel 2007, if I enter '30' in cell E11, it should come out as '20%'. Instead it comes out as '0.2%' unless I enter '30' into the formula bar, which then calculates properly. It is far more efficient to be able to enter the value directly into the cell.
I am trying to do a dynamic sumifs that allows the user to use data validation lists to select 5 items to query. This is the easy part.
The hard part is that the amounts range to sum goes across 6 weeks and I want the answer to also take account of another validation input which specifies up to what week the range should be.
I have done a simply if statement in row 8 that flags weeks relevant to input cell B6.
How do I do a formula in say cell A16 that does the sumifs and acknowledges that the user has requested a dynamic range to sum?
I have a series of macros I have built to automate some report manipulation at my office. One of the macros I built inserts formulas into specific columns. When I run this macro, all the formulas, save one, are populated perfectly into the column they need to be in. This particular formula is swiched over to R1C1 Reference Notation.
In the workbook I built the macro in, it inserts the formula in the correct notation. When I run the macro in a different workbook, this one formula is converted to RC Notation and then is displayed as text (since the workbook is not set to the R1C1 Reference style option).
Is there a bug in my VBA code? If so, how can I correct this?
I use Excel 2007. Macros are saved in my Personal.xlsb workbook. All other forumlas populated by the macro work correctly.
Everytime I save my workbook, I get a dialog box that says:
"A formula in this worksheet contains one or more invalid references. Verify that your formulas contain a vlid path, workbook, range name, and cell reference."
First off, it say's "this" worksheet no matter what worksheet is active.
Usually the culprit is a screwed up name that has a #REF in it somewhere. Not this time. All of the formulas appear to be working fine.
Is there an audit feature that will find the errors for me? (Excel 2007)
I am using Excel 2007 in Windows XP. I am trying to change the worksheet referenced in a formula from the label of the worksheet to the index of the sheet. I want to use this macro in multiple workbooks, and the relevant sheets have different names but are all in the same position.
I used "record macro" to get the structure of my code. It gave me the line:
I can't get this to work, and I can't find the syntax for this anywhere. I've tried with and without quotes, exclamation points, changing to A1 notation and using "Range," "Sheets," "Worksheets," "Item(3)", and many other combinations, but haven't gotten it right.
Most of the errors I get are "Runtime Error 1004: Application-defined or object-defined error."
I work with several dates in Excel 2007. What forumula can I put in a blank cell that would change the below "Start Date" to 3/1/12 if the date displayed is less than 3/1/12? Also, if a cell in the "Start Date" column is blank, how can I populate a blank cell with a specified date value such as 3/31/12?
Excel 2007 I have 80 very similar sheets. The only difference is the sheet name (Phase A (1), Phase A (2) etc.). I want the formula located in cell B5 to be different on every sheet.
I have listed the desired formulas on a single seperate worksheet, named "Overview". On this sheet, the following columns have these data in them: A - Sheetname (example: Phase A (1), Phase A (2) etc.) B - Cell location (example B5, constant)
C - A formula (example: =Sheet1!G47, =Sheet1!G48, etc.)
I would like to create a macro that will loop through all the sheets, doing the following: 1. Check if the sheetname exists in column A of the Overview sheet 2. If it does, take the formula from column C of the Overview sheet 3. And put it in the cell specified in column B of the Overview sheet
Here is some code, to illustrate the above. I know the code is mostly nonsensical.
Code: Sub Enter_formulas() Dim ws As Worksheet For Each ws In ActiveWorkbook.Worksheets
I'm trying to sum over a range (column A) based on values in another range (column B). Column B's cell values are calculated with a simple numeric formula that is either a subtraction or an addition of two cell references. I want to sum all the column A cells for which the corresponding column B cells are determined by a subtraction. Then separately, sum the cells for which the corresponding column B cells hold an addition. It seems that SUMIFS is the function to use, but how do I specify the sum criteria as "a subtraction" or "an addition"?
I setup a named formula: Spread1 =Sheet1!$E$2:$BE$2 where I entered % values to spread a an annualized figure over 53 weeks
On Sheet 2 I entered the amount to spread in $D$2 and in $E.. I entered my formula: =Spread1 * $D$2. Everything appeared great!
But then I deleted a few columns on sheet2 so first calculation is now in $G$2
Spread1: =Sheet1!$E$2:$BE$2 Calculations: Sheet2! $G2:$BG$2 (the values in I,J,k while summing to the total are in the incorrect weeks based on the spread on Sheet1, BF and BG have #VALUE! errors)
Seems odd, if I highlight "Spread1" in the formula bar and [F9] I see an array of 53 possible values and the 3 values I expect are in the place in the array (elements 5,6,7).
How I can defeat it with the possibility that a user may delete a column?
I have a spreadsheet in version Excel 2007 that is refreshing data from Access tables. Users are needing charts to show progress by month, but are also needing to filter by area and one to filter by a section.
What I have so far is the data being calculated using SUMIFS so that I can pull between dates. I then added two comboboxes so that the user could filter by an area and by section. This is working, except that I have not been able to figure out how to allow the user to select "All" so that they can see all data from on or both of the selections.
I am using Excel 2007 with a WIN XP OS…. My objective is to color code each cell in Column F within each sub-group based on the following instructions:
1) Column F contains a percentage…. Each sub-group in Column F totals 100%.... Each sub-group is separated as shown on the enclosed sample. 2) Starting with the highest percentage, followed by the next highest, (etc.), I want to sum each subsequent cell until reaching a target threshold (total sum) of 62%.... All cells in this grouping to be highlighted “yellow”. 3) Once the 62% target threshold is reached, the very next highest subsequent cell percentage is highlighted “light olive”…. If there is a tie, the lower number shown in Column E serves as the tie-breaker. 4) All remaining cells within the sub-group are highlighted “light brown” including those denoted by 0%. 5) Finally, if the cell is blank and absent of a % call out, then no highlight is required.
I process a daily spreadsheet having typically in excess of 1000 rows and in turn, I’m looking for a method to automate the color coding….