Problem in Excel

Visuarchie

New Member
Joined
Feb 16, 2011
Messages
3
I have a problem in Excel to which i seeking a solution.

I have imported some External data using the Query option and I am able to Refresh it as and when I want.

In another location in the file, I have given reference to a particular cell that I am importing (eg. on Cell A3 I am saying =G121 to show the contents of cell G121).

In the normal course in Excel, when a row is added or deleted the cell references get automatically updated.

However, as I am using an External Query to populate a column, as soon as I put refresh, I am assuming that Excel thinks that I have deleted and uploaded new data. So now what happens is that the old cell references are still in place, but it is now picking the wrong cell.

How can I solve it? I would like to have suggestions so that I can make the cell references get automatically updated or reference the cell based on a partial text string of what I am searching for.

Please help.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hi

Probably best to use some form of lookup formula if you can uniquely identify the item of data you are interested in. What identifies this data item as the one you want (eg a unique reference, preferably, in a horizontally adjacent cell)?
 
Upvote 0
Hi

Probably best to use some form of lookup formula if you can uniquely identify the item of data you are interested in. What identifies this data item as the one you want (eg a unique reference, preferably, in a horizontally adjacent cell)?

Ok, I will tell exactly what I am doing.

From a site that provides the NAV of mutual funds, I download the entire data in text form. There are close to 4000 rows of data. The data that I am importing looks like this:

113065;Axis Triple Advantage Fund - Dividend Option;10.0352;9.9348;10.0352;15-Feb-2011

What you see above is the data from one cell.

So it is possible to identify the data I need using the ref at the beginning of the text string or the name of the fund, eg "Axis Triple Advantage Fund" which is unique.

How can I create this look up formula that you are talking about?
 
Upvote 0
Assume:

the 4000 rows of data has been imported to Sheet1 column A
the lookup formula will reside in Sheet2 cell B2, Sheet2!A2 contains the ID of the fund (113065)

Then in Sheet2!B2 enter:

=VLOOKUP(Sheet2!A2 & "*",Sheet1!$A:$A,1,FALSE)
 
Upvote 0
Assume:

the 4000 rows of data has been imported to Sheet1 column A
the lookup formula will reside in Sheet2 cell B2, Sheet2!A2 contains the ID of the fund (113065)

Then in Sheet2!B2 enter:

=VLOOKUP(Sheet2!A2 & "*",Sheet1!$A:$A,1,FALSE)

Thanks a million. It works! I am not able to understand the logic of the syntax. Can you please care to explain?
 
Upvote 0
Sure:

=VLOOKUP(Sheet2!A2 & "*",Sheet1!$A:$A,1,FALSE)

Sheet2!A2 & "*"
The lookup value is the Scheme number (found in A2) with an asterisk (*) concatenated on the end - the * is a wildcard chracter meaning "zero or more of any character" which basically will match the first value in the lookup range:

Sheet1!$A:$A
that starts with the scheme number. It returns the value in A:A that is matched because the first column is specified:

,1,

and finally the final argument:

FALSE

specifies the first match obtained should be returned.
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top