# Excel 2007 :: Formula To Return First Cell Reference In Another Cell Formula

Oct 1, 2011
Version: Excel 2007 WinXP

I'm basically looking for something almost like an inverse function to INDIRECT. This function would first look at a cell's formula as a text string, parse out the first valid cell reference in A1 format, and return that cell as a text string.

Detail: I have a spreadsheet with cells that point to other values. I would like to get only the row number from the first cell reference in the formula residing in a given cell. For example:

Suppose A1 has the formula =AL267. and A2 has the formula =SUM(AL94:AL235)

I would like a formula in B1 that returns the text string, "AL267" so that I would know this is the first reference.

Ideally it could be dragged down to B2 such that it returns the text string "AL94" (and not "AL235") because AL94 is the first cell reference in A2's

Currently I am copying the formulas after hitting ctl+` and pasting that text into a text editor, followed by text operations to manipulate the results into the desired values. Any solution that didn't involve going out to notepad.

View 2 Replies
ADVERTISEMENT
Jul 23, 2008

I am creating a summary financial sheet in Excel 2003, Win XP. It needs to show the top 10 sales variances from a large data list, along with the associated department.

I can bring in the top 10 largest variances using Large(array,k), but because variances are either positive or negative, I'm not really showing the true top 10. To fix this I can use absolute values via Large(abs(array),k) but then I don't know how to convert the value back to its original sign (positive or negative).

If I could somehow get the cell reference that the Large(abs(array),k) formula points to, I could do something like this:

=Large(abs(array),k) * (Large Cell Reference/Large Cell Reference)

I'm afraid to use the address function because of duplicate sales variances. I often have several variances of with same value, so I might not truly be pulling the address that the large(abs(array),k) is pointing to.

View 9 Replies
View Related
Aug 13, 2013

I am migrating a bookkeepping spreadsheet from Quattro v12 (c2001) to Excel 2007 and have hit a stone wall over relative 3-D references.

In this workbook each sheet holds data for one month, and this includes some lagging-12-month calculations -- that is, summing a range on a single cell for the preceding 12 sheets (including this one).

Unexpectedly, this formula:

=ISUM('201206:201305'!M6)

gives absolute references, even though I put in no dollar signs after the sheet names. This means it gives the wrong answer when copied to the next sheet to start a new month.

I can find no reference at all to converting the above formula from absolute to relative reference.

View 5 Replies
View Related
Feb 13, 2012

I am having trouble making any formula references between 2 different workbooks.

For example, I being typing out my VLOOKUP function on 1 sheet, as soon as I get the table argument, I switch over to the other workbook in which the table is, and I no longer have the VLOOPKUP function active.

I am having this problem for any formula in which I am trying to reference this workbook.

I have ensured they are both saved as Excel workbook documents. I am using Excel 2007

View 3 Replies
View Related
Jun 4, 2014

Excel 2010. When the result of the formula in Col. E is less than zero, I need to move the row to another sheet, and then delete the row.

I modified another poster's script as follows:

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)

' Move rows with negative value in E to Flagged Items sheet

Dim rng As Range

' Set Target Range

Set rng = Target.Parent.Range("E2:E200")

[Code] ........

The script works perfectly if a negative value is manually entered into a cell in Col. E, but not when the result of the formula produces a negative number.

I can't find a way to make the Case Is < 0 act on the resultant value rather than the formula.

Is this possible in the script or is there another way to achieve the desired result?

View 4 Replies
View Related
Nov 8, 2011

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

[Code]....

View 4 Replies
View Related
Mar 27, 2014

I have been trying to work on this excel worksheet for a while. I have give the charge column (tab:data) and the rate chart (matrix type with weight and zone). I want to find the formula that would tell me if the charge is in the rate chart (I know it would use countif), and tell me what the zone and the weight associate with it. Using

=CELL("address",Index()), but it won't work.

View 1 Replies
View Related
Jun 1, 2012

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

[Code]....

View 2 Replies
View Related
Dec 28, 2013

If C5 refers to the value in cell C100, C6 refers to the value in C110 ten rows below. C7 refers to C120, ten rows below that and so on. Is there a formula that you use within excel (not a macro) that allows me to copy the C7 formula to C8 so that C8 will reference C130?

I have tried using INDIRECT and OFFSET formulas but cannot do it without an absolute reference to a fixed cell, which defeats the purpose, since I can go into C8 and manually change it to =C130, C9 to =C140 etc.

Currently using Excel 2007 at work and Mac Pro at home. Thought about R1C1 reference, but don't even know how to change to that style on my Mac.

View 9 Replies
View Related
Jun 13, 2014

For work I keep track of errors in files my co-workers make. So in one individual cell it may look like this :

OP15698

OP25687

or

OP45986

OP74563

I simply need to count how many of those file numbers there are in one cell.

Is this possible? I also use Excel 2007.

View 11 Replies
View Related
Sep 30, 2011

Surely it's user error, but it honestly seems like Excel is not calculating 2 numbers correctly. At work, we have office 2010 where it is not calc'ing correctly; at home I have 2007 and it's fine, but anyway, here's my situation:

Cell A1: 0.003529

Cell B1: 0.48

If i put in Cell C1: "=B1/A1" i get a value of 136.000000 But that's not correct, it should be 136.01587... But if in Cell C1 i put "=0.48/.003529" then i get 136.01587...which is correct.

Why does using cell references in my formula give me the incorrect value?

View 2 Replies
View Related
Dec 19, 2011

I am trying to find a formula for a vlookup that will check one cell for any value but if that cell has no entry then it will check a different cell to return the value how do i do this?

TEAMCSS Wetherill ParkCT NAME

above is where i need it to look CSS wetherill Park is cell C1 the cell that has no entry is H1, both of these cells have validation lists in them,

OS windows XP excel 2007

View 3 Replies
View Related
Jan 27, 2012

Anyone know of a way to detect if a cell is blank in a closed workbook?

Here's what I'm trying to do:

=IF(ISBLANK(closed workbook cell reference),NA(),closed workbook cell reference)

also tried:

=IF(closed workbook cell reference="",NA(),closed workbook cell reference)

Neither one worked. I'm using Excel 2007.

View 8 Replies
View Related
Mar 6, 2012

I am an Excel 2007 user.

I have a formula (below) that looks only at records based on specific filtering criteria or conditions; one of those conditions is the month of the year: ('Data Dump'!$Q:$Q,Summary!$A$26). This portion of the formula would change as a month is selected.

Opposed to having to rewrite the formula every time that I want to view a specific month, I want to automate the formula to change the first condition when a user selects a month from Column A. This would be a real time, automatic refiltering and recalculation as the user selects different months from Column A

Current Formula that filters and shows only January records.

=COUNTIFS('Data Dump'!$Q:$Q,Summary!$A$26,'Data Dump'!$D:$D,Summary!$A$2,'Data Dump'!$M:$M,Summary!C$2)

Column A (January is in cell A26)

January

February

March

April

May

June

July

August

September

October

November

December

View 2 Replies
View Related
Aug 14, 2006

I have the following formula in cell L51 of all sheets calculating the volume depending on the monthly index that is chosen from the drop down menu in a particular sheet. =If(MIndex=0, SUM(D33:L50),If(MIndex=1,SUM(D34:L50),If(MIndex=2,SUM(D35:L50), 0))). I am getting the following message and I do not understand what it is about.

Microsoft Office Excel cannot calculate a formula. Cell references in the formula refer to the formula's result, creating a circular reference. Try one of the following

View 3 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
Oct 25, 2012

I have the need to email the current worksheet in Excel 2007, which I have been able to do with the following ...

Sub SendTab()

'Declare and initialize your variables, and turn off screen updating.

Dim wks As Worksheet

Application.ScreenUpdating = False

Set wks = ActiveSheet

[Code] .......

Is there a way I can also get it to also rename the sheet from the default "Book1" to the information in a referenced cell.

View 7 Replies
View Related
Mar 10, 2013

I have a list of headings and items and I have a set of formulas that work out depending on the heading what items are listed.

Say theres 10 items and the heading starts at C4 and that heading has 10 items, so it puts "C5" as text in G1 and "C15" as text in G2 so i now know my cell range of items

How can i use the text in those cells to put in a formula to call that as a range?

If I use the indirect formula it shows me the value of the cell, but im after using it to reference the cell

View 4 Replies
View Related
Jan 29, 2014

I need to make a cell display the contents of the cell immediately below it, regardless of if there are rows inserted at the referenced row or above or below it on the worksheet. ALSO I need to do this at several additional cell locations down the worksheet. Such as : A1 displays A2, A4 displays A5, A7 displays A8 etc.

Example: I want A1 to display whatever is in the cell immediately below it. In this case A2. I need to be able to insert several rows at row 2 and have whatever new value is now in the A2 position displayed in A1.

After the rows are inserted I need the cell that was in position A4 to continue to display the contents of the cell below it.

I tried using the formula in A1 of: =INDIRECT("A2") and it works good except when I insert the rows my similar formulas below the area where the rows were inserted continue to refer to the specific original cell and not the one positioned now below it.

View 3 Replies
View Related
Feb 15, 2010

I have lets say 12 months of data. I have formulas that reference the latest 6 months. When I insert a new column to input a new month, how can I make the formulas include the new months without manually updating them.

EXAMPLE:

12 months of data exist in cells B3:M3 going from B3(oldest) to M3(newest). Formulas reference latest 6 months of data in cells H3:M3. When a new month hits, I insert a column after column M.I would like the formulas to now reference cells I3:N3 which is now the newest 6 months.

View 14 Replies
View Related
Jul 25, 2013

I have run an INDEX and MATCH formula to give me a resultant cell reference number. I now want to copy a cell to this specific cell reference using another formula.

For example the data I want to copy is in cell A1 and in cell A2 I have the result of the index formula (B1).

I know how to manually do a formula for this but wanting to know if there is a uniform formula that I can use that looks at the formula result of cell A2.

View 5 Replies
View Related
Aug 18, 2009

I am wanting to convert a cell reference text

"=$A$1"

to an actual cell reference

=$A$1

Manually I can go through each cell and click F2 + Enter and Excel automatically changes it.

I have tried recording a macro whereby I click through each cell with F2 + Enter but the VBA writes the actual formula "=$A$1" rather than the process. This does not work as the cell reference is variable.

I'm NOT wanting an external cell to convert it for me

i.e. INDIRECT(CELL)

because I am wanting to copy the answer to another independent spreadsheet

I'm NOT wanting to paste values

i.e. return the answer from cell $A$1

because I want the cell reference to remain within the cell.

View 3 Replies
View Related
May 22, 2008

how can I use the cell function inside a NPV fuction as one argument of the start for the NPV string to calculate?

View 3 Replies
View Related
May 20, 2009

I've hit a problem when re-working some of my spreadsheets. Basically I have this bit of

View 9 Replies
View Related
Jan 15, 2008

I have 2 sheets. In the first sheet, I have 3 columns. The first column contains transaction codes. The 2nd column contains the destination code (like a mapping cell where the value of the 3rd column would go but in a different sheet/2nd sheet) and the 3rd column contains the values for it. Would it be possible to reference a destination in a cell itself? Or should I just code it individually? I wouldnt want to reference each data one by one because the total would be 480 reference cells. Is there an easier way?

View 9 Replies
View Related
Jul 28, 2012

I am using the DOB formula of =DATEDIF(AA19,NOW(),"y") & " years, " & DATEDIF(AA19,NOW(),"ym") & " months, " & DATEDIF(AA19,NOW(),"md") & " days". In the next cell I want it to look at the previous cell and determine if "older than 2 years". I have tried the "search" and isnumber, but I keep getting the wrong answer.

View 1 Replies
View Related
Jul 26, 2009

Hello,

I am trying to create a formula in Excel to preform a "SUM" on cells that only have a letter Y (as in "yes") in the cell next to them.

For example

View 3 Replies
View Related
May 11, 2012

I need to display cell AV13 from sheet 2 on sheet 1. To do this I go to sheet one and in the cell I type =Sheet2!AV13 and voila I get my value. My problem is AV13 is determined by two list boxes, one finds the column AV (named the cell that holds this value as StageColumn) and the other finds the row (named SubCatRow). What I want to do is have a cell that gets this information from Sheet 2. I tried to concatenate the string, but all I get is the text.

The concatenation string was =concatenate("='Sheet2'!",F25)

I have F25 containing the formula =Address(StageColumn,SubCatRow)

View 1 Replies
View Related
Mar 24, 2013

i have a table of data and a formula at the right which gives the max of that data and would like to get the row header and column header of the cell that is giving me the maximum value

e.g on the below the maximum value is 24346.3 and i would like to have in another cell Australia Diversified REITs

Diversified REITs

Homebuilding

Industrial REITs

[Code].....

View 7 Replies
View Related
May 22, 2009

I am trying to figure out how to reference the formula from another cell. For example, say cell A1 has the formula =indirect(address(row(),2)). Assume B1 equals 10 and B2 equals 20. The formula in A1 would yield 10. How can I make A2 reference the formula in A1 so that A2 yields 20? I need it to actually reference the formula in A1, simply copying and pasting A1 or dragging A1 will not suffice.

View 9 Replies
View Related