Formula With Non Fixed Row Number?

Dec 14, 2013

For instance I have a formula such as =sum(A1:A9). But imagine that the range is not always till row 9 but depends on the total number of rows that are in the table. How can I change that 9 so that it takes a number equal to the total rows in the table?

The final formula I want is not that simple one. It is actually

=INDEX($F$1:$F$1047,MATCH(1,INDEX(($G$1:$G$1047=G2)*($L$1:$L$1047<>"47200")*($L$1:$L$1047<>"47700"),0),0)).

I want to change 1047 by the relevant number of rows. Also, I do know how to do it in VBA, but I have a problem with the length of the formula there (not that one, but other bigger than that)

View 5 Replies


ADVERTISEMENT

Shift Range Of Cells To Calculate Formula By Fixed Number

Mar 10, 2009

How can I shift the range of cells I want to calculate an average from? For example I want to get the average of cells A1 to A10, so =AVERAGE(A1:A10) And next I want to get the average of cells A11 to A20, so =AVERAGE(A11:A20). But I don't want to manually change the data or delete rows all the time.Is it possible to do something like: =average(A1+10:A10+10)??

View 4 Replies View Related

Formula To Look For A Number Entry On One Worksheet And Return Another Fixed Entry?

Mar 14, 2014

Is there a formula that will allow me to look for the existence of any number value in a row of one worksheet and then return a specific number value in a cell on another worksheet? For example, if the formula finds any number value it will always return the number 15 to a cell on another worksheet.

View 3 Replies View Related

Divide Number Cell By A Set Or Fixed Number

Jul 9, 2008

I am wondering if it is possible to create a formula in a cell that will divide whatever number is entered into that cell by a set or fixed number.

ie. I enter the number 9 in the cell and when I press enter, the 9 is instantly divided by 15 and the answer is displayed in the cell where I just typed the 9.

View 14 Replies View Related

Loop A Script A Fixed Number Of Times

Aug 9, 2006

I have a sheet with data in rows across several columns.

I want to copy the data from each row into a new sheet and save it with another name (which I already have ascript for), but as I have 10 rows , basically all I've done is copy the script 10 times and chaged the row numbers and nae to save as.

What I want is one script that does all I have now, but then loops back to do the next row down and changes the name to save it as as well (which is the person's name listed in the row)

View 9 Replies View Related

Multiply Column Of Numbers By Fixed Number

Mar 1, 2008

I did a search myself, then went through the 5 pages the "Post" function brought up. I'm sure it's been asked before, I must just not be using the right words

I need to tell every cell in one column to multiply itself by a firm number and a percentage. Ex: Column F will be the result of $77.80 times 75 percent all the way down the column. Column G will be $27.21 times 100 percent all the way down.

I could enter the formula into every cell, but I wondered if there's a way to just tell the whole column, only once, what it needs to do. PS-I work for an insurance company. The employees of a company want a spreadsheet showing exactly who pays exactly what. Ex: Their paystub shows $142.90 coming out of their paycheck. Their employer pays 100% of medical, 75% of dental. The columns would show Total, Employer Medical, Employer Dental, Employee Medical, Employee Dental.

View 2 Replies View Related

Fitting Fixed Number Of Columns To Page Size For Printing?

Sep 24, 2011

I'm struggling with getting my Excel worksheet to fit nicely on the pg for printing to .pdf. I could tinker with column widths manually to work this out for a printed report. But I need to print a couple hundred reports with varying column widths, so I need a vba solution.

The context is that I'm using vba to process two sets of interlinked data on a worksheet. I only want to print one set of data, and keep the second set out of the print view. To do this, I'm keeping the first set of data in columns 1 to 10 and the second set of data in columsn 21 to 30. I set the print range to only include columns 1 to 10.

This works fine for keeping the second set of data off the printed pg. The problem is that there is always a gap between the end of column 10 and the maximum width of the printed pg. Given the formatting of the report, this doesn't look very good.

I know that page setup offers the "fit to" option. This would work if I wanted to fit everything on the worksheet on the pg, but I don't. I just want to fit columns 1 to 10 to the pg. Is there a way to do this, allowing for varying widths in columns 1 to 10? Is there a way to do it via vba?

View 2 Replies View Related

Using Autofill With Fixed Rows In A Formula

Mar 8, 2013

I'm trying to autofill "vertically" in a spreadsheet using a formula which loads value from a different sheet.

Lets say I have cell (A1 for example) ='2013'!A39

Now I want to fill A2-A30 in a way that the formula updates to ='2013'!B39, ='2013'!C39, ='2013'!D39...and so on

I've tried using ='2013'!A$39, but this only copies the formula as it is. When I try to autofill cell A2-A30, the formula still is ='2013!A$39

Is this possible to do?

View 1 Replies View Related

Copying Formula With Fixed Rows But Different Columns?

Nov 27, 2013

Im using this formula in a spreedsheet =(B$3*0,5)+(B$3+(B$4*0,5))+(B$3+B$4+(B$5*0,5))+(B$3+B$4+B$5+(B$6*0,5))+(SUM(B$7:B$28)*4)

What i want is to be able to drag this down for multiple rows but i want the formula above to only change columns i.e.

Next row gets C$3 and so on.

View 3 Replies View Related

Formula Result Which Is Fixed After A Certain Date/time

May 21, 2007

way to get a formula result to freeze or remain unchanged AFTER a certain time?

I tried using a macro which runs when the file is opened and does a crude 'copy/paste values' operation and replaces the Formula results with their values, but its is not very 'nice'!

I need a table to change a pattern of values but not in the past, but still to remember what that value was....!

View 9 Replies View Related

Insert Row At Active Cell With Formula From Fixed Row

Jun 20, 2007

I want to insert a new row that contains the formulas of a fixed row (1:1).
The inserted row is changeable and is determined by whichever is the current active cell.

Eg:

Active cell is something random like E16

I want to add a new row but don't want a blank row - rather want a row that contains the properties of 1:1

View 9 Replies View Related

Use The Names Of The Tabs In The Summary Page And Create It Into A Formula To Lookup Fixed Cells Within The Various Tabs

Oct 12, 2009

I have a summary page that includes the titles for each tab within the excel 2003 workbook. I want to use the names of the tabs in the summary page and create it into a formula to lookup fixed cells within the various tabs. Sorry for not uploading an excel doc but I was at work earlier and the thread did not load for some reason, so I am reposting it.

View 3 Replies View Related

Formula To Calculate Based On Start Month Number And Duration Number Of Months

Mar 14, 2014

I need a formula that will calucalte the monthly total based on the following conditions:

Col A = Yearly Cost
Col B = The number of the month when the costs are starting (1=Jan etc)
Col C = The duration or the number of months for which the costs are to spread
Col D is Year 2013 with the months across columns D-O. Row 1 above those columns shows the month's corresponding number.

Right now I have =IF($B3<=D$1,$A3/$C3,0) however if my start month is 1 and my duration is 5, I need the costs to stop after May. I've attached a sample file. Calculate based on start month and duration.xlsx

View 3 Replies View Related

Excel 2013 :: Formula To Auto Delete Number In Dropdown List When Number Appears In Another Cell

Apr 27, 2014

I'm making a Excel 2013 spreadsheet that has formula in a column that auto enters a number 1-40 when something is entered to the left of that cell. There are 300 rows in the spreadsheet. I would like to make a drop down list in a column cell to the right that would delete that number in that cell from the drop down list. For example cell C1 has 39, that 39 then is deleted from the drop down list. C2 has 22 in it, click on the drop down list cell and it shows 1-40 less 39 and 22.

View 11 Replies View Related

Formula Finding Number In Range To Display Another Number

Aug 25, 2006

Designated Cell = 7

1 10 .034
15 25 .072
35 45 .089

Output Cell = ???

I am trying to find a formula for the output cell. Suppose the designated cell = 7 due to formulas above it. So that number is always given but can change. I then need a formula for the ouput cell that says if the designated cell is greater than or equal to 1, and less than 10, then the output cell should equal .034. So suppose the designated cell = 18.2. Then I would want the output cell to be .072 since it is greater than or equal to 15, and less than 25. The template I am using has 23 rows of numbers like above. I didn't know how to do it for 23 rows though. If/Then doesn't work because it is 23 statements long (well over the seven limit) and the vlookup only works when the cell is equal to a number and not a range.

View 9 Replies View Related

Use Number In Cell With Other Number In Lookup Formula

Sep 28, 2006

I'm trying to use the formula vlookup, but running into trouble. I'd like to use =VLOOKUP(3000&A1,E:F,2,0) but this isn't working correctly because it doesn't recognize "3000&A1" as a number? Is there a way to do this? This will be used in a VBA code, so I prefer the solution in VBA, but either way is fine. See attached for more info.

View 4 Replies View Related

Depreciation Of Fixed Asset

Mar 20, 2009

I'm trying to calculate the Depreciation of the fixed asset for some items. I've tried the formulas that came with Excel but i don't know its not working or not give the correct value
so I attached a file as an example what I'm trying to have is

1- straight line method along the asset life

2- salvage must be ( 1 )

3- if the purchase date is equal to or before the middle of the month (14-15/02/2004) so the start of depreciation have to start from the beginning of the current month ( Feb) but if the date excess the day 15 ( 16/02/2004) the middle of the month , the the depreciation must start from the next month.

View 8 Replies View Related

Fixed Column Width

Jul 22, 2009

I'm trying to create a vb to get all columns on my sheet to have a fixed width.
If I run my sub all columns go back to the set width. But I want the width to reset when the width is changed.

View 2 Replies View Related

Fixed String Length

Dec 1, 2009

I am trying to create a string of text that grabs info from other cells, which is easy so for example

=A1&A2&A3

would grab all the info from the 3 cells and merge them to create a string, but what I want to do is create a prefixed length.

Lets say A1, A2 and A3 would equal 10 characters in total but B1, B2 and B3 would equal 7 characters, these would be different lengths. so for a visual description I would like them to appear like this

At the moment

01MAIN-HELLO
01DESSERT-HELLO WORLD

Would like

01MAINXXX-HELLO
01DESSERT-HELLO WORLD

This would make both strings the same length and would make it easier for me to export to a custom file that needs a certain length prefix.

View 9 Replies View Related

Open No Fixed Name (*.xls*) Format In VBA

Jan 5, 2010

I have open a workbook and copy the data from that workbook to another workbook.

Here the problem is workbook name is not fixed. How to oepn that workbook.
I used the belwo statement but giving error "no file name"

View 4 Replies View Related

Fixed Width With CONCATENATE

Nov 19, 2008

Excel 2007

I want to CONCATENATE 3 columns

column 1 will have names
Columns 2 and 3 will have numbers
All will be of different lengths

Is there any way to set a fixed width when I use the CONCATENATE funstion so everything looks more uniform (left justified)

View 7 Replies View Related

Fixed & Incremental Function

Mar 27, 2009

We have a charging system that fixes anything under an hour to 1 hourly rate, then after that we charge in 15min incremental blocks charged at 0.25 of an hour now we need to automate it to make it more econmical. The rate is set at the beginning of each job sheet and the times are inserted in order to get the total minutes worked & what to charge, eg: agreed rate per hour = $A. time1 = 11:45am & time2 = 12:30pm which is 45 minutes total however its under 1 hour so its gets charged at the minimum hourly rate of $A. if total time happened to be 61mins then it would be charged at 1hr 15mins which is ($A x 1.25)

View 3 Replies View Related

Sumproduct With Fixed Columns

Dec 6, 2013

Im new to excel and problem regarding the sumproduct function.

I have three columns in my sheet1, column A and column B contain 1000 numbers.

Hence, column A goes from A1 to A1000 and column B from B1 to B1000.

In the first row of column C, i want to use sumproduct on A1:A5 with B1:B5.

My problem arises when I want to drag the formula down, in the second row of column C I want

to use sumproduct on A6:A10 with B6:B10 but the formula uses A2:A6 with B2:B6.

Is there a way to fix the ranges when I am using sumprodct so it takes "fixed" ranges like every fifth,

A1:A5 with B1:B5 , A6:A10 with B6:B10, A11:A15 with B11:B15 and so on.

View 2 Replies View Related

Inputting Fixed Time

Jan 23, 2008

I have a sheet with a number of different columns, is there a way that when data is input into a cell in the first column that it time stamps the last column on the same row, and this time stamp is fixed. Then when data is input into the cell below the same thing happens, so i can have a time stamp for each entry.

View 9 Replies View Related

Fixed Objects Will Move

May 5, 2004

I'm having problems when trying to apply an auto filter to my data. When I select the critieria from the auto-filter drop down, on any field heading, I get this messgae "Fixed Objects Will Move" about 18 times.

View 9 Replies View Related

Sum Values Greater Than 0 As A Fixed Value

Jul 19, 2009

I have a column of values. If a row's value is greater than 0, I want to count it as a value of 100 and add the result. I can get this far: =SUMIF(H11:H12,">0")

...but I don't understand what would come next. What I am trying to do is to use the above formula to total the actual sum of an array and then to also create a second column which assigns a maximum value total based on each row's non-zero result being worth up to 100. Using the above formula as a reference again, the formula that I am seeking would return a total value of 200 if both H11 and H12 contained any value greater than 0. I plan to use these two results then to calc a percentage.

View 2 Replies View Related

Transposing Cells Again... From Fixed

Sep 2, 2006

Attached is a sample of my challenges.

View 8 Replies View Related

Pad Cells To Fixed Length

Feb 19, 2007

I need to expand my columns to different character widths (fill with blanks) for an Import into an other program, I state the No. of characters in that column and Import. Trim does the complete opposite to what I require, does anybody know if the function exists and if so the syntax for it.

View 4 Replies View Related

Fixed Decimal Places

Jun 6, 2007

Everytime I enter a number, excel automatically converts it to a decimal number.

I type 1 in a cell (or formula box)
Excel returns the value as 0.1

I think it may have to do with the FIX box highlighted to the bottom of the screen. (To the right side of the NUM lock). (I can't paste a screen dump to show the FIX box position). how to remove the FIX box, and/or change excel so that I can enter in numbers normally.

View 3 Replies View Related

Dynamic Pie Chart With Fixed Colors

Aug 5, 2014

I'm working with a pie chart that has a dynamic range as its data source and a dynamic range as its legend. The chart shows ratios of bought items depending on customer type. So, when you switch from a "Hair" customer to a "Bath & Body" customer, the ratios shift and the legend changes as well (i.e. "Hair - 25%" to "Hair - 10%").

Is there a way to fix the colors permanently so that as the ranges change, the colors remains the same for each category?

I've seen some VBA for it, but it was for data in long columns, whereas my data is in one range in the middle of the worksheet.

I can attach the file if it makes things easier.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved