# Easily Change Column Reference In Formula Argument

Jun 17, 2009
i have the table of holiday days with 7 columns(7 countries).Each column consists of 10(or more rows (holiday days).

I have a formula for calculating start day for a deposit which has to be renewed.

formula is =workdays(end date of deposit,-2,A1:A10).

-2 in formula is because all the trades in the market are traded Today+2days.

A1:A10 is column of holiday days.

This formula calculates the start of deposit excluding weekends,holiday days.

BUT I have more then 7 countries and I would like to have a macro so when in cell F10 I type SWEDEN,my formula automatically use the column with holiday days B1:B10 for sweden.

When I type Finland, the formula uses column C1:C10 with holiday days from Finland respectively.

View 6 Replies
ADVERTISEMENT
Feb 7, 2008

In Sheet1,

C14 = Sheet2!D2

C15 = Sheet2!D3

C16 = Sheet2!D5

What i want to do is to change "D" to "E". Next time i run it, it will change from "E" to "G".

I want a macro to do it, so that I don't have to change it manually one by one. For some reason, when i try to use .formulaR1C1, the reference change, and I couldn't get it to work.

View 5 Replies
View Related
May 22, 2014

I'm dealing with forecasting invoices. The main column 'BALANCE' has a formula referencing the previous cell and then adding or subtracting invoices (ENTRY). The problem I have is that I'll put values in ENTRY that I expect to come in at some point but as they arrive I need to change the order of the cells. So I'm constantly changing the order and then it changes the formula in BALANCE. I tried absolute cells (and even found a work around way to flow absolute cells by flowing then viewing formulas then using the replace function but that didn't work.

So my formula in BALANCE is:

=$I$173+$E$174-$G$174

but if I move G174 to another cell I'd like to keep the BALANCE formula to stay G174 instead of following the move.

View 2 Replies
View Related
May 26, 2009

I'm working on setting up a chart. The formula I'm using for cell B21 is this: =ROUND(F3,0) & " " & IF(E3<F3 ...

View 2 Replies
View Related
Aug 25, 2009

i have the following formula applied to a conditional format, on row 12:

cell value > less than =($K12:Y$111)*(1-0.05)

i want to use this on all rows, however i have 300+ rows.

Is there a way to apply this to all rows between column K and Y, i don't like the thought of creating 300+ conditional formats!

View 14 Replies
View Related
Mar 6, 2008

A 'Days Attended' cell (N8) and a 'Days Absent' cell (O8). N8 needs to count the number of "Present" values there are on another worksheet. The other worksheet has dates across the top and names down the side.

When i use

=COUNTIF("Attendance!C9:Z9", "Present"),

and the next date comes along the formula changes to

=COUNTIF("Attendance!D9:AA9", "Present")

ie. the reference moves a column across - the new date's absent or present is not counted. Using =COUNTIF(INDIRECT("Attendance!C9:Z9"), "Present"). is no good because when i add a new name i need the row reference to move down as a row is inserted. ie. both person's formulas count the same row. So, my question: I need the columns to stay the same - C:Z (leyway for future dates) and the rows to change as i insert or delete people from the system.

View 2 Replies
View Related
Apr 25, 2014

I have a massive excel sheet with 300,000 rows and 100+ columns. When reading back through my formulas, it can get very confusing. Example: "=(AZ9*5 + 1)+BH9/2 +(AP9*0.75)" I then have to figure out what each column letter is representing. Instead of this, could I rename a column so I can reference the variable name? Example:

Instead of =CONCATENATE(A4, " ", B4)

have

=CONCATENATE(FirstName4, " ", LastName4)

View 3 Replies
View Related
Jul 25, 2008

I am using this formula

=IF($A5="Select","",MAX(INDIRECT(SUBSTITUTE($A5,"/","")&"m1440"&"!d:d")))

It looks for the sheet based on A5

It finds the max number from the sheet in Column D

This is what i would like to do please....

On this found sheet - Column A has dates in this format yyyy.mm.dd

I would like to enter a date in a cell (say for example AA5 on main sheet)

Can the formula above be adapted to:

Look for sheet based on A5

then

Look at date entered in AA5

then

use Vllookup to find row containing date in AA5 (making table range the ENTIRE SHEET found based on A5)

then

Return value from Column D

View 9 Replies
View Related
Aug 1, 2007

I have several Excel workbooks that suddenly has converted to numbers for both columns and rows. Sheets that were saved and correct yesterday, upon opening today, are now numbered rather than number and letter. Any of my formulas now reference a RNumber and a number when citing location.

View 3 Replies
View Related
Apr 26, 2014

I am using below formula to make cell link i m using below formula in column C

I want to copy this formula to range("C4:C2000"), now I want after 43 row ( in cell C47 =(=INDIRECT("V5")) change the V4 to V5

and

cell C90 = (=INDIRECT("V6"))

cell C133 = (=INDIRECT("V7")).......and continue till C2000,,, i mean after 43 rows it change the V4 ot v5, v6, v7, v8, v9.......

View 2 Replies
View Related
Jun 23, 2014

I have a cell which is referencing another (=Sheet2!A1) that and I want excel to update the reference by 50 rows each time (Sheet2!A51) .

View 8 Replies
View Related
Dec 5, 2006

I have a set of formula in column C to H. I have set a formula as sheet1+sheet2+ like this for about 24 sheets with different reference of cells. I want to change in the entire range of cells C to H as =sum(sheet1:sheet24!b04). The reference what I have mentioned changes in different cells.

View 9 Replies
View Related
Dec 28, 2008

Is there a way to change a cell reference within a formula. ie: If the formula is =A1 (in reference to cell A1) and I wanted a new cell to have the reference =A10. Can I make a formula which was A1+9, and therefore lookup A10.

View 9 Replies
View Related
Sep 10, 2007

Is there an easy way to drag all the references to a cell in a formula quickly e.g If i have a formula like this is;

=IF(A1>0, A1+1,A1-1)

and want to drag all the references to the cell A1 to another cell in one go as opposed to one at a time?

View 6 Replies
View Related
Jan 8, 2012

How do I change a formula cell reference based on another cell's reference? I'm building a schedule that looks to a task's trigger and adds days based on that relationship. All entries in column "A" will be text and all cells in "B" will be the simple formula "=A2" or "=A3". Due date is calculated by adding the value in "C" to the preceding date in column "D". In the spreadsheet below, the trigger for "Budget set" is "Specs written" with 3 days added to the previous due date.

________A________________B_____________C_________D

1 Task___________Trigger_____________Days_____Due Date

2 Design begins__Proj OK______________10____10-Jan

3 Specs written__Design begins (A2)____5____15-Jan (D2+C3)

4 Budget set_____Specs written (A3)____3____18-Jan (D3+C4)

If the trigger for A4, "Budget set", changed from A3 to A2, is there a way that the formula that determines the due date in D4 could read the trigger cell reference in B4 so that the value in the corresponding row in column "C" is added in the date column?

View 4 Replies
View Related
Apr 30, 2012

I have a file that summarizes data by country and by month but then another file with a yearly summary. I need to pull in the same cell references for each month but using each tab's name: 'Jan' tab, 'Feb' tab etc. The problem is every time I tell it to find/replace the tab name, I have to select the file from its location in a browsing box every time. I have also tried the indirect formula without much luck and because I also had to add all the month summary tabs to the original file to get the indirect formula to work. I would rather keep both files separate.

How do I copy over formulas in the Jan column and change the tab reference to the Feb tab for the Feb column without having to change things 200 times for each countries data?

View 2 Replies
View Related
Aug 26, 2009

I was wondering whether there is an easy way to change a formula containing a named range back into it's original cell reference in VB. For example I have a cell saying =cogs2008/revenue2008 and I want to change it back into =A2/A3. Any ideas?

View 9 Replies
View Related
Feb 16, 2010

I have a range named as follows in a formula:

BaseCase!$O:$O

I have a data validation from which the user can choose another tab.

So, how do I change the reference above to:

TabName!$O:$O

so that TabName refers to the text string in cell B2 (data val. box)

I tried to use TEXT to no avail. I imagine there is a simple solution, but I am at a loss.

INDIRECT perhaps?

View 9 Replies
View Related
Jun 25, 2014

i want to change the table_array reference without changing formula in every worksheet. I tried using a new worksheet and naming it the same as what is referenced in vlookup table_array but it messed up all the data.

I have to use a different worksheet every month so need a way to change reference OR how to change array data without messing up the worksheets with the vlookup

View 9 Replies
View Related
Apr 29, 2014

I have an excel workbook that has many spreadsheets (each one sheet has a client name)I have another excel workbook that has these client names on one sheet (on a list) and next to every name I have a number (i.e total turnover of the year).

In the first workbook (where every client has his sheet (tab named after the client) I want to have a cell that equals to the sum of some cells on the other workbook, that refer to the specific client

(it looks like this ='[comissions NF 10-14.xls]comissions 14(auto)'!$J$81+'[comissions NF 10-14.xls]comissions 14(auto)'!$J$197+'[comissions NF 10-14.xls]comissions 14(auto)'!$J$313+'[comissions NF 10-14.xls]comissions 14(auto)'!$J$429)

I want this sum to be added to every sheet of this workbook. each sheet refers to a client, so $J$81, $J$197 etc must be changed for the correct cell that refers to the name of the client. The tab names are alphabetical and so s the list.

Is there any way to do it, without re-entering the formula to each one?

View 1 Replies
View Related
Apr 15, 2014

I'm working on a decision matrix to evaluate different alternative production methods. Before that criteria have to be choosen and weighted against each other. The user would fill out the yellow/ blue cells with (0=less important; 1=equally; 2=more). Then values are added up and put into some kind of ranking.

The example was done by hand, which costs a lot of concentration. I would now like to extend the matrix - do you know how to fill out the grey cells more efficiently?

(Excel 2007, Win7)

View 1 Replies
View Related
Feb 8, 2010

need to do to the below code so that when i drag the formula down it changes the sheet number....sheet1, sheet2, sheet3 and so on but keeps the cell reference the same?

View 4 Replies
View Related
Aug 14, 2009

I'm trying to revise a salary payments workbook that isn't set up so well and I'm struggling with finding a good way to enter payments from an old sheet onto a new sheet. The values (for example) I want to appear on the new sheet are in range C2:AQ2 on the old sheet. Instead of going left-to-right, I want them to appear from top-to-bottom. The first formula I wrote was just a simple:

View 5 Replies
View Related
Aug 29, 2013

I have hit the limit with IF statements in a formula I have in a questionnaire that I made in Excel 2010. How would I create this formula in VBA?

"TRUE" is already returned in those cells where a "Yes" radio button is selected.

I would like the macro to run when a button is selected, and for it to post the return (i.e., "BP Owned Circuit") in cell B6.

Here's the formula:

= IF(AND(C3=TRUE,C4=TRUE,C9=TRUE,C10=TRUE,C11=TRUE,C14=TRUE,C15=TRUE,C16=TRUE,

C17=TRUE,C18=TRUE,C19=TRUE),"BP Owned (Circuit)",

IF(AND(C6=TRUE,C9=TRUE,C10=TRUE,C11=TRUE,C14=TRUE,C15=TRUE,C17=TRUE,C18=TRUE,C19),"BP Owned (VPN)",

IF(AND(C6=TRUE,C7=TRUE,C8=TRUE,C9=TRUE,C10=TRUE,C18=TRUE,C19=TRUE),"Shared VPN (IPSec)",

[Code] .........

View 1 Replies
View Related
Feb 4, 2014

I have got a UserForm which pulls data from Excel sheet and show it on UserForm.

UserForm1 has One ListBox name "ListBox1" and Thirteen TextBox's.

TextBoxBatch...... Showing Batch number

TextBox1 ........... Showing Year 1 data

TextBox2.............Showing Year 2 data

TextBox3...............Showing Year 3 data

.

.

.

.

TextBox12...........Showing Year 12 data

It shows data correctly in UserForm1 for TextBoxBatch and TextBox1 to TextBox9 but when it reaches TextBox10 it give error "Could not get Column property, Invalid argument"

And it does not show data in TextBox10 (Year 10), TextBox11 (Year 11), and TextBox12 (Year 12).

I have attached workbook and userform.

Book1.xlsm

View 4 Replies
View Related
Dec 28, 2013

Can we use an array like {1;3;4;5} as Row or Column argument in INDEX function? Like shown below

=INDEX($A$1:$E$10,0,{1;3;2;4;5}) OR =INDEX($A$1:$E$5,{1;2;4;5;3},0)

View 9 Replies
View Related
Jan 18, 2008

I'm trying to write a formula that will keep the Column ID static while allowing the Row ID to be reference. Each week my worksheet adds one line and the formula in question is moved one cell to the right and thus the formula cell makes the same move (1, -1). I need the formula to keep the column the same from week to week, while allowing the row to shift downward with the formula. I've attached a sample spreadsheet with the formula I derived. Check out the highlighted formula to familiarize yourself before running.

View 2 Replies
View Related
Jan 17, 2008

I get an "The formula you entered contains an error"-message when trying to format every other row with =MOD(ROW(),2)= 1 in the Conditional formatting dialogue. I know exactly how to do, and follow the instruction exactly.

View 9 Replies
View Related
Jan 5, 2009

Easy scroll to down ways, should I copy rows to a column? See the attachment for a more clearance.

View 4 Replies
View Related
Aug 7, 2013

I have a array as

01-12-2008 pump-1 25

01-12-2008 pump-2 28

02-12-2008 pump-1 24

03-12-2008 pump-1 26

03-12-2008 pump-2 38

03-12-2008 pump-3 35

I need sum value as

03-12-2008 pump-1 75(=26+24+25)

02-12-2008 pump-2 if no answer blank

03-12-2008 pump-2 66(=38+28)

View 9 Replies
View Related