Locate Formula Reference Between Spreadsheets

Aug 25, 2006

I have 2 spreadsheets. One of them has various lines that sum different lines from the other spreadsheet, e.g.

Sales = 200100
Expenses = -300345
Other Income = 120000
Selling and Admin = 35000

The other spreadsheet has a lot of details that make up this first spreadsheet.

e.g.

Paper 100000
Cardboard 50100
bottles 30000
cups 20000

These add up to the sales number for example.

Is there a way that I can use the solver or something similar to get all the cells that relate to the first spreadsheet in one shot, and so I don't have to first find what the sales number is made up of, and then what the expenses number is made up off..can I look for the relating cells in one go. Is there a code or something that I can use.

The 2nd spreadsheet has a lot of rows, and it's quite difficult, also I find that when I look for the sum of the sales number and try looking for the expenses number, it gives me cells that are related to the sales number as well.

View 5 Replies


ADVERTISEMENT

Locate Circular Reference

Sep 25, 2007

I've often lurked in the background here and have found great solutions to my problems from the ozgrid FAQ's and email outs.

I have a custom VBA formula that has a heap of ranges as inputs. I loop through one range then perform calculation on the other ranges in the formula.

The formula is to work on 2 sets of data, 1 with more columns than the other. I've set Optional variables for the unnecessary columns.

For some reason I keep getting circular references on the 2nd set of Data.

I've attached the spreadsheet (stripped down) to show both examples.

I'm absolutely confused why the "teaching" one calculates correctly and "support" gives a Circular reference error.

I've set the Iteration in options and this corrects it, however I'd like to know why one works perfect and the other fails?

View 9 Replies View Related

Locate Last Used Row & Add Formula Via Code

Aug 27, 2006

How can I program a variable 'rowcountnumber', that would count the number of active rows, starting from row 10 ?

View 8 Replies View Related

Formula To Locate Second Occurrence With Multiple Conditions Met

Mar 17, 2009

The purpose of the formula is to locate the 2nd occurrence of an entry where criteria in other columns are met (used to determine whether people can qualify for an item based on attendance and another condition).

I am using this formula but I know it needs some adjustments and can't seem to work it out or maybe am going about it completely wrong.

=IF(COUNTIF(D2:D205,D2)>1,AND(T2="Y",U2="Y")*1,0)

I need the formula to indicate the second occurrence of this cell with the criteria that BOTH first & second occurrences have T2="Y" and U2="Y". My formula only indicates the first occurrence and the first occurrence if T2 and U2 meet the conditions.

View 8 Replies View Related

Find/Locate End Of Range & Add Formula Result

Aug 24, 2006

Dim myDynRange As Range
Dim myLastRow As Integer
Range("H:H").Select
myLastRow = Range("H:H"). CurrentRegion.Rows.Count
myFirstCell = Cells(Counter, 8).Address
myLastCell = Cells(myLastRow, 8).Address
myDynRange = myFirstCell & myLastCell

im having a problem with the last line
myDynRange = myFirstCell & myLastCell

my eventual aim is to do an average on this column with a line like

ActiveCell.Offset(Counter, 1).Value = Application.WorksheetFunction.average(myDynRange)

the reason why my range declaration is so strage is because i was trying to change the dimensions of the range with an offset function because i had many ranges to average but the offset function didnt want to work. this way goes like this....................

View 2 Replies View Related

Locate Date Function/Formula Based On Criteria

Jul 7, 2006

I am trying to find the starting effective month for a workyear. The criteria for the selected month is that the data BEFORE the effective month is all zeros. I manage to get the result if the data AFTER the effective month is ALL non- zeroes. If there is any zero, the data fetch will be inaccurate due to the COUNTIF formula. Is there any other way or formula that will enable me to get the result. File attached for testing and reference

View 6 Replies View Related

Circular Reference: Cell References In The Formula Refer To The Formula's Result, Creating A Circular Reference

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

Copy Formula Across 100 Spreadsheets

Apr 2, 2012

I have a workbook containing 101 sheets on the first sheet is a list of numbers in H1 to H100. Sheet2 will have the value in Sheet1 H1 in cell G3 then Sheet2 will have the value in Sheet1 H2 in cell G3 and so on for the 100 sheets Sheet101 will have the value in Sheet1 in cell G101 in cell G3 how do I automate this task. This would be easy on a small number of sheets to enter manualy but I dont fancy entering into 100.

View 7 Replies View Related

Formula Link Across Spreadsheets

Jun 12, 2006

I created a summary page for some reports I do and I'm having trouble keeping them linked together as my original data has rows deleted and inserted. There are 30 spreadsheets worth of information and I have them linked to a summary file. Each month I insert a new tab to each spreadsheet. I set up all of the formulas last month but see a problem this month when I copy and past the formulas to the new tab. On the 30 spreadsheets my data moves up and down so the row referenced in the summary formula is wrong. I am looking at having to type "=, click on original spreadsheet, select cell, enter, repeat" all over again. I pull 5 numbers from each sheet, and have multiple formulas to double check the math so I would be repeating this process over 300 times.

After all that, my question is...Is there a formula I can use that will pull this for me without needing to be edited each month. One idea I thought would work is to tell the formula to equal the first cell in Column B that is in red text and I could just change the font color on the orginial spreadsheet. But, I don't know how to make a formula say that or if excel can even do that.

View 9 Replies View Related

Stop Formula Column Reference Changing On Insert But Not Row Reference

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

Unable To Utilize Spreadsheets With Formula's After Upgrading To Windows Seven From Xp?

Jun 23, 2014

I have multiple spreadsheets that have formulas pulling from other spreadsheets that I use for daily, monthly & annual reports. After upgrading to Windows 7 from Windows XP these spreadsheets are no longer seeing the formulas if I open multiple spreadsheets at a time. This is a problem as my monthly and annual spreadsheets need to pull from multiple workbooks in order to give me monthly and annual totals. I have macros set at "Enable all macros" and have added the file location in "Trusted Locations". What else do I need to set in order to work on multiple spreadsheets at a time and the formulas pull data as needed?

View 1 Replies View Related

Cell Reference :: Formula To Reference New Cells

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

Circular Reference With Formula But No Reference To It

Mar 26, 2009

=INDEX(INDIRECT('Quote Detail IP'!$C$10&'Quote Detail IP'!$C$5&"!$A:$DC"),MATCH(B1,INDEX(INDIRECT('Quote Detail IP'!$C$10&'Quote Detail IP'!$C$5&"!$A:$DC"),,1),0),MATCH(A1,INDEX(INDIRECT('Quote Detail IP'!$C$10&'Quote Detail IP'!$C$5&"!$A:$DC"),1,),0))
Where
A1= "M16" and B2= "185%RPIT630"
'Quote Detail IP'!$C$10&'Quote Detail IP'!$C$5=QxTermAge63
Can some on tell me why this is raising a Circular Reference!!

View 9 Replies View Related

Change Formula Cell Reference Based On Another Cell Reference

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

Copy Pairs From 2 Columns To Formula Reference Cells & Copy Updated Formula Results

Jun 24, 2008

I am currently working on a data analysis project (data mining) and need to collect and later analyze statistics for the inputs which control a series of calculations. These statistics are shown in the Statistics 1, Statistics 2 and Statistics 3 cells in the workbook that I attached. The inputs are X,Y; all possible values for these inputs are listed in the N,O columns. Basically I need a macro which would take the values from these two columns and place them pair after pair into the controlling cells (K3, L3), then it would copy cells H2 through L3 (updated stats) to a new sheet after each copy operation - so that I will finally have a list of statistics for all of the input pairs.

View 3 Replies View Related

Tab Reference In Formula..

Sep 2, 2009

I've got the following formula that I want to tweak. As you can see from the formula, Henning is the name of the tab on the other workbook. If I were to add a column on the spreadsheet that has this formula, and put "Henning" in it, is there a way to use that cell in the formula so that it would still open the Henning tab in the other workbook? I'm trying to avoid having to modify each and every formula.

View 2 Replies View Related

Reference Last Row Used Within Formula

Jun 26, 2012

I have the following formula ...

Code:
=ROUND(SUMIF(W4:W4023,"Exisiting",Q4:Q4023)/MAX(1,COUNTIF(W4:W4023,"Exisiting")),2)

... on a spreadsheet that I use as a sort of template for a bunch of other spreadsheets that I manually generate.

Is there a way to have it always reference W4 through the last cell used in W and Q4 through the last cell used in Q. As it is now, I have to manually update the formula each time I add or remove rows to the sheet. I typically start with a blank sheet, with the exception of a group of headers and a row of formulas, and then paste in new data. If the above formula could automatically reference the last cell after I add in the new data, that would be great.

Can it be done with the Indirect function or by some other means?

View 3 Replies View Related

Using DOB Formula As Reference Cell

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

VBA - Add Formula To Reference Another Workbook?

Jun 20, 2013

I believe this is the last piece of the puzzle of a project I'm working on. Here are the components I have to work with:

Component 1:

VB:
Dim file As Range
Set file = Range("rgFileToBeChecked")
'this sets "file" as the full path

[Code]...

View 9 Replies View Related

Formula To Cross Reference

Mar 4, 2009

formulas i cannot get my head round at all i need e14 to work out how many times cell e1 appears in column h and in column b. so if yes is in e1. it then needs to look down column b and cross refernce it with column h and return the number of yes that appear in column b AND the same row in column h.

View 3 Replies View Related

Formula To Reference A Cell

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

3d Reference In An INDEX Formula

Aug 12, 2009

i'm trying to search throgh multiple sheets using an INDEX formula.

=INDEX('12.31.09:11.15.09'!$AF$14:$AG$75,MATCH(E$2,'12.31.09:11.15.09'!$AC$14:$AC$75,0),MATCH($B61,' 12.31.09:11.15.09'!$AF$12:$AG$12,0))

In short, these are timesheets; in a separate sheet i'm using the above formula to find how many hrs were worked on all the other sheets for a given job# within a given date range. (in the above example, i'm only searching in timesheets between 11/15 and 12/31, but I will ultimately change that to include the entire year '12.31.09:01.15.09'). E2 is a referenced job number; B61 is a referenced date.

I'm getting a !VALUE error.
Can a 3d reference work inside an INDEX formula?

View 10 Replies View Related

Column Reference In Formula

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

Copy Down Formula To Reference To The Right

Mar 25, 2014

In DB2 I have = DB1. How can I drag this down and for each row I go down, I want to reference one more cell to the left of DB1, so in DB3, I would have DA1, and so on.

View 2 Replies View Related

Reference Another Workbook In Formula

Nov 11, 2009

I am having trouble inserting a cell reference into a formula. I have a spreadseet that uses data from another workbook. The workbook name changes monthly, so i'd like to be able to place the workbook name in a cell and have the formulas in the spreadsheet use that cell to get the name of the workbook to get the data from. So:

if, for eg, the formula in my spreadsheet is ='[test data file.xlsx]Sheet1'!$B$4+'[test data file.xlsx]Sheet1'!$B$6

I would like to be able to enter test dta file.xlsx into cell A2 of my spreadsheet and replace a reference to A2 into the formulas. I've tried several ways, but can't seem to get it to work.

View 3 Replies View Related

Date Reference In Formula

Jan 4, 2010

I am trying to create a formula, comparing the date in column A to 3 fixed dates, then calculate the value in column C:

=IF(OR(A142=Sheet1!B2,A142=Sheet1!B3,A142=Sheet1!B4),C141-B142+8,C141-B142)

Where Sheet1!B2, B3 and B4 are the fixed dates (5/15/2010, 8/31/2010 and 10/31/2010). I would like to copy the formula into multiple cells, but keep the references to the fixed dates the same. When I do a copy, paste, the resulting formula becomes:

=IF(OR(A143=Sheet1!B3,A143=Sheet1!B4,A143=Sheet1!B5),C142-B143+8,C142-B143)

I need the Sheet1 references to remain the same. Or, can I hard-code dates in a formula?

View 2 Replies View Related

Reference Cell With A Formula?

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

Getting Cell Reference Of Formula?

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

Sheet Reference In Formula?

Jul 30, 2014

I have this formula (which will soon be much more complex...):

=COUNTIF('dt-a'!C2:C194,'what they want for each teacher'!D1)

I would like to be able to replace the sheet names with a reference to a cell which contains the sheet names.

This is so that a user can enter the sheet name in a cell without having to modify the formulae, break the formulae, and then come running to me ranting about things not working and how computers never work properly.

View 1 Replies View Related

Formula That All Reference To Different Documents

Aug 15, 2008

I have 330 lines of formula that all reference to different excel documents. These files are donated by a 4 digit number. i.e. 4186.xls.

The main document that looks at these files needs to ability to acknowledge changes in the 4 digit number in its formulas and look at a different file if necessary.

EG. =sum("4186.xls"!E4:E5)

A very simple example of the formula i am using. I just need to actively change the 4186 that is in the formula to whatever is in the contents of another cell.

I might just be stupid. Infact, i admit i am no expert. That was my first =SUM formula actually.

View 9 Replies View Related







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