How To Nest References

Jul 31, 2009

What I'm wanting to do is essentially use a reference to update yet another reference.

In more detail, I want to retrieve a value on a worksheet and use that value to alter yet another reference to another worksheet.

For example, I want to retrieve a value (let say its 16 from either a local cell or a cell on another worksheet) and then retrieve yet another value from another worksheet based upon that value (lets say the worksheet I would want is then "Subject 16").

I've attempted various nesting formats of the typical reference formula but obviously have had no luck. Would I need to use VBA or is there a simple solution that I am missing? If I do have to use VBA how should I go about doing this?

View 14 Replies


ADVERTISEMENT

Nest If With Multiple Criteria

Sep 6, 2009

In (C2+) it should display one of the following results - "Listed", "-" meaning not listed, or "Listing Ended". This is worked out from the corresponding dates to the right of "Selling Status" and in (G2) which contains the current date. So when there is nothing entered in (D2) "Selling Status"(C2) should display "-", if a date is entered into (D2) it should then go to "Listed". This part I’ve managed to accomplish, however, when I try add the next part to the equation, it doesn’t seem to like it.

If "Listing End Date"(E2) is less than the current date(G2), "Selling Status"(C2) should then go to "Listing Ended".

This is the current formula I have (below) which does actually display "Listing Ended" However it also contains the "Listed" which it should over right.

Current Formula - =IF((D2=""),"-","Listed"&IF(E2<G2,"Listing Ended",))

View 7 Replies View Related

Nest Lookup With If And Statements

Feb 13, 2008

I have the formula below:
=IF(OR(LEN(B2)=0,C2>0),"",IF(AND(VLOOKUP(A2,$A3:$D$99,4,FALSE)=D2,VLOOKUP(A2,A3:$D$99,3,FALSE)>0,B2> A2),"Possible",""))

It should bring back the result "possible" when C2 is negative and D2 (name) matches other D cells while B2 (date) is greater than the A cell (date) for the corresponding matched d cell also the corresponding c cell is positive.
But I think the formula is not incorporating b2> corresponding matched column a.

View 14 Replies View Related

Embed/Nest Three Functions.

Oct 23, 2008

I've already nested INDEX and MATCH sucesfully

I wish to embed/nest (I'm not sure what the difference/ correct syntax is)

These Funtions:

1. "=INDEX($H$4:$H$9,MATCH(G14,$G$4:$G$9,0))"

2, =HLOOKUP(Arg!D10,Arg!$D$10:$DA$50,5,FALSE)


The HLOOKUP returns a text value that the Index and Match convert into a number. I wish this to be done in one cell - is this possible?

I'm using INDEX with MATCH because HLOOKUP can return a 'not applicable' that equals '6' this need to be discounted in my results but that is a digression FYI.

View 2 Replies View Related

Nest A SUM Function In A VLOOKUP?

Apr 28, 2009

I have a template with multiple sets of the same categories. I want to consolidate the data for each category in a summary. However - the template is expandable by using a macro - so the number of SETS of categories is not fixed. So a simple SUM function won't work since the list of cells expands. I don't want to re-write the formula each time and the method I have is "brute force" with lots of extra columns.

My thought - If I do a VLOOKUP for "Design" and the data is the "unit cost" column can a formula be written to see all the occurences of "Design" and SUM the "unit cost" returns?? example book is attached. hit the "add option" button to see the way the sheet expands.

View 4 Replies View Related

Nest Lookup With IF AND Functions

Jan 29, 2008

I have a spreadsheet that is by:

Purchase Date (column A)
Sales Date(column B)
Quantity(column C)
Name (column D)
Gain/loss (column E)

The spreadsheet is sorted by name in ascending order and also by quantity in ascending order.

Assuming row 1 is the heading. If D2 (name)= the same as another D cell and it's quantity i.e. C2 is negative, while the other D cell with the same name as D2 has a positive quantity i.e. corresponding C cell, and if the date in B2 is greater than date in column A of the other cell where it's D cell matches D2 and has a positive quantity, then in I would like "possible" to display in F2.

I have included an attachment to better illustrate what I have described above, because I am not sure if I am clear enough.

View 9 Replies View Related

Nest Match & Index Functions

Jun 1, 2008

I would like to use a custom function or excel formula, if already exists, that finds the text "12 months" and then returns the value of the column that holds that value.

View 9 Replies View Related

Nest / Combine 2 Sumproduct Functions From 2 Different Tables

Aug 20, 2014

Looking to nest or combine the following 2 functions because I'm looking up the same cell content, except within 2 different tables.

=IF(B12="","",SUMPRODUCT(--($B$12:$B$17=X18),--($S$12:$S$17))) and =IF(B22="","",SUMPRODUCT(--($B$22:$B$32=X18),--($S$22:$S$32)))

Right now, these functions works well from a single table but need to combine them. Other function examples are welecomed too.

View 6 Replies View Related

Combine Or Nest Multiple Lookup Functions

Dec 16, 2006

I've got an indexmatch that works great
=IF(ISERROR(INDEX(accountstaff,MATCH(B$20,INDEX(accountstaff,,1),0),MATCH($ A55,INDEX(accountstaff,1,),0))),0,INDEX(accountstaff,MATCH(B$20,INDEX(accou ntstaff,,1),0),MATCH($A55,INDEX(accountstaff,1,),0)))

But I need to incorporate IF statement based on varying levels of revenue and think VBA will be less cumbersome, but don't know how to combine else if and index match.

I am trying to accomplish this:
IF B$20 (which is a dollar amount is = X, then index, match....
IF B$20 is > Y but < Z, then index, match...

View 9 Replies View Related

Vlookup Countif Nest: Count Of Sizes By Position?

Oct 25, 2009

On attached Spreadsheet, we are using Vlookup to create Team pages for coaches. Works great for giving coaches a team sheet when they leave draft. I have been aasked if we can cultivate the info a little differently for ubiform screenning. Company wants a count of sizes by position, that is everyone in position 1 will get number 40. How many #40 AS, AL, AM do we need.

There are 157 teams. SO I need to loop throgh each team, pull each size for each position and put it on Size sheet. I was thinking a vllookup/countif or sumif combo would work but have not been able to come up with it.

View 2 Replies View Related

Changing Hard Coded Column References To Variable References

Oct 22, 2009

I have a number of statements within the Sheet Event Code (Excel 2007). Three times lately I have added a column and had to go back into the code and find all of the references that needed changing to reflect the new column.

I have been working on this for a couple of days and even tried EE, but to no success.

I have read that Defined Names / Constants should be used as often as possible, but even trying that, the VBA code errors out or "hangs up". Even within Bill Jalen's book (VBA and Macros 2007), there is nothing that addresses this, especially using Intersect.

Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng As Range

On Error GoTo mEnd
Set rng = Sheets("Log").[F14:F10000]
If Not Intersect(rng, Target) Is Nothing Then
If Target = "" Then
With Sheets("Log")

View 9 Replies View Related

Add Nest Formula/Function To Cell With Variables Via Macro Code

May 22, 2008

I would like to use a varible Cell for the following forumula:

ActiveCell.Formula = "= ROUND(PIExpDat(""TimeEq('""&Cells(RowNdxG,4)&F$2,F$3,F$4,F$5,0,)/3600,1)"

I have underlined the variable. This is not working but is rather showing up as a string value Cells(RowNdxG, 4).

View 6 Replies View Related

Converting Absolute References To Relative References In Formulas?

Feb 10, 2014

I set up formulas to count text characters in a range of cells. I'm tracking attendance and payments for a small yoga studio.

All I need to do is count "Y"s for prepaid attendance and "DI"s for drop-ins. I have the formulas working but they are absolute so inserting a row will break my sheet.

=COUNTIF(E14:Z14,"*Y*")
=COUNTIF(E11:Z11,"*DI*")

View 1 Replies View Related

Structured References And With Cell References I Get A Column Of Zeros

Nov 25, 2007

It is suppose to be that if the employee is "FT" and has worked >=4 years the return is 15. But if the employee is FT and has worked 2 years but less than 4 years then it is suppose to return 10 (these are days off) Or if the employee is FT and has worked 1 year, but less than 2 then it should return 5 days off. And all the others in the column get no days off.

I have tried to do it with structured references and with cell references I get a column of zeros!

View 9 Replies View Related

Change Static References With Lookup References

Mar 2, 2009

I am using the dsum formula to sum some values...the formula in B2 is:

=DSUM(BaseSistemasFebrero,"vlfinf",OFFSET('Planes Entidades'!B$1,0,0,COUNTA('Planes Entidades'!B$1:B$49),1))

The Planes Entidades sheet the data is layed out like this: ....

View 9 Replies View Related

Check And Set References With VBA

Mar 11, 2009

for example, is it possible to check if a Reference to Set a reference to Microsoft Internet Controls (shdocvw.dll) has been enabled in user Reference settings. And if not set, then set it via VBA

View 4 Replies View Related

Can You Use INDIRECT In 3-D References

Jul 13, 2006

For example
=SUM(INDIRECT(C10))
where C10 would contain
="Sheet2:"&"Sheet3!"&"A"&ROW()
always returns #REF!.

However, ="Sheet3!"&"A"&ROW() as the Cell C10 entry will work fine.

View 10 Replies View Related

Circular References

Aug 25, 2008

15.2
13.9
6.1
9.19

and i wanted to divide these all by 4.

I can do this by clicking on a cell OTHER than one of those four above, and do:

=A1/4 (if 15.2 was A1) and copy that formula down.

But then I have the originals AND the new ones in separate columns.

I want to just be able to divide those original numbers by 4 without resorting to using other cells, but if I do =A1/4 on A1 itself it says that i have made a "circular reference"

View 9 Replies View Related

SAP Connection - Which References

Sep 7, 2006

I'm trying to connect to SAP R/3, and I think I'm not sure which references (Tools --> References) I'm supposed have checked.

All I want to do for now is the following:

Dim sapConn As Object
Set sapConn = CreateObject("SAP. Functions")

Unfortunately, I am getting a "Run-time error '-2147024770 (8007007e)': Automation error. The specified module could not be found."

I have read somewhere random on the internet that I should add "SAP:Remote Function Call: COM Support 1.0 Type Library" which links to the SAPGui Provided library librfc32.dll. However, this alone doesn't seem to work...

View 5 Replies View Related

Warning Of Invalid References?

Jul 28, 2014

Running a worksheet with vba, at the start of the code I turn warnings off and at the very end of the code I turn them back on.When the routines complete a warning is raised:

A formula in this worksheet contains one or more invalid references.

Verify that your formulas contain a valid path, workbook, range name, and cell reference.

When I run Error Checking everything comes up clean.

Clicking on "Show Formulas" shows no formulas for there are no formulas on the sheet to show, just a chart, and clicking "Show Formulas" just turns my dates into serial numbers and screws up the display of the two comboboxes, messing the fonts and drop-down arrows, and since closing and reopening didn't revert the comboboxes back to normal I will now have to blow them away and resurrect them. I also see Show Formulas also messed up my command buttons. nice...

The only way I find to avoid the error is to turn Warnings OFF at the start of the charting routine and NEVER turn it back on.

I made certain that none of my names had any errors in them. Everything looks proper. So what next?

I fear something will create an error for me now along the lines of Murphy's Law

View 2 Replies View Related

External References That Should Be Internal

Mar 1, 2007

I update files monthly and save them each month with a new name (eg. Jan, Feb, etc.).

In the file I have a reference from one tab to another tab within the same file. So every time I re-save this file with a new name, it should still reference the cell in the other tab - same file.

BUT on 2 occasions this reference changed to an "external" reference to the previous month's file.

I've been doing this every month for over 2 years and this problem has only happened 2 times. I know others that have experienced this, but nobody knows what caused it.

Does anyone know what would cause this? The biggest problem is that I may not notice this has happened for a long time.

One other thing I might add. I use an older version of Excel (2000). I share these files with other people who may have newer versions (I'm not sure who has what). Can sharing these files with others over a network system have something to do with this? Can opening "read only" when someone else is in the file and then saving as a copy do this?

View 11 Replies View Related

Flexible Cell References

Oct 9, 2008

I want to do a search for the amount of people of a certain age in a column, but I want to be able to vary the amount of cells I look in. So first I might want to look for people aged 15 in A3:A35 and then in A3:A55 to see if there is a difference.

Now the optimal way to do this, in my opinion, would be to have a reference that looks like A3:A(B1) and then have the number of the last cell I want to look in in B1, in this case either 35 or 55.

View 4 Replies View Related

References By Using Paths To Other Workbooks

Aug 11, 2009

is it possible to use references and concatenate them together that they are still references?

i have in:

file1.xls
sheetX:
A1: 'C:Infonic[file2.xls]sheet2'

file2.xls
sheetY:
A1: test

what i need is in sheet2 of file1

the value of file2.xls!sheetY!A1 = test
the problem is that i need to use the path to file2!sheet2 of the cell A1 in sheetX

is it possible to use sheetXA1 together with sheetYA1 as reference in sheet 2 so that i get back test as value.

View 10 Replies View Related

Countifs With References As Criteria

Aug 13, 2009

I'm trying to use this formula in a cell but it keeps giving me #NAME.

What does this mean?

View 8 Replies View Related

Replacing References In Two Columns

Oct 29, 2009

I have 2 colums like this. And I want whenever there is a reference like this âë. "some word" in column 2, to have the macro look up some word entry in column 1, find the text in the same row in column 2 and replace the âë. "some word" reference with the text found in column 2. (See attached, sheet 1 as it is, sheet 2 as I want it to be).

Sheet 1

another wordâë. "some word"
awordìåôÜöñáóç
bwordâë. "aword"
some wordêÜðïéá ëÝîç

Sheet 2

another wordêÜðïéá ëÝîç
awordìåôÜöñáóç
bwordìåôÜöñáóç
some wordêÜðïéá ëÝîç

View 9 Replies View Related

Relative Hyperlink References

Jan 24, 2010

I suspect there's a simple answer to this but I've looked and can't find it: In Excel 2003, when I add a hyperlink to another file and close/reopen my workbook, the link is saved as relative to the current workbook. So if the main workbook is moved or, in my case, when I use VBA to copy and email the sheet with the hyperlinks, the links are broken.

View 2 Replies View Related

References Goes Wrong After Sorting

Feb 18, 2010

I have a problem with my references when sorting in excel. I have been searching for the problem, but did not found a useful solution.
I'm using excel 2003.

Let me try to explain my problem with a simple exampel.

I have a column with numbers and one with formulas pointing at these.
A B
2 =A1
4 =A2
3 =A3

Now I want to sort column A, and the column B should keep pointing at the original number. So I want this:
A B
2 =A1
3 =A3
4 =A2

But I get this:
A B
2 =A1
3 =A2
4 =A3

This output is what I would expect if I used absolut reference($).

Using offset(B1;0;-1) will work, but I cannot use this, since I will add/delete rows and the reference is not neccessarily next to it. Plus it can be a rather large sheet.

I cannot use dynamically name definition either, because it is intended for other users, and this will be too much work for them. What I basically need is a simple formula they can enter.

My sorting is done via a VBA macro, so if there is anything I can do through macro/VBA that will be okay as well, since I can do this without the user seeing it.

View 14 Replies View Related

Do Not Display Multiple References Of Same Value?

Jan 25, 2013

displaying the value of a reference once before filling down. I want it to display only once and not display anymore until a different value is included in the fill down. The rinse and repeat.

View 3 Replies View Related

Formula References Between Worksheets?

Dec 20, 2013

Column O is names and column P autogenerates email addresses with

=CONCATENATE(SUBSTITUTE(O2," ","."),"@company.com; ")

So, John Smith becomes

"john.smith@company.com; "

That's perfect. I want to move it to another worksheet. When I paste it to Worksheet 2, A1 I get

=CONCATENATE(SUBSTITUTE(Sheet1!O2," ","."),"@company.com; ")

So why does that only generate "@company.com; "?

View 4 Replies View Related

Copy References From Row Down A Column?

Dec 27, 2013

How can i copy references from a row, down a column. Like I want to reference A1:A10, but I want to reference them down A2:11.....I would like to just the references down.

View 1 Replies View Related







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