Using cell contents in an equation

GazNicki

Board Regular
Joined
Nov 30, 2010
Messages
78
Hi,

Sorry about the wording of the title, I don't know how best to word this.

I have a large number of Excel spreadsheets in subfolders that I wish to obtain information from. Currently, I need to type in the path and filename into each cell. There is a spreadsheet for every single day, and they are all individual.

I do not have control over how these sheets are setup, so I have to use what I have.

Here is the formula in cell E8 which works perfectly:
Code:
='G:\ORDER CONTROLS\SAINSBURYS ORDER CONTROL\2018\06 June 2018\WE 02 JUNE 2018\[Sun 27 MAY 2018 JS.xlsx]PALLET SHEET CALCULATOR'!$A$16*$D$8

What I would like yo do is this:

In cell E2 I would like to have the directory name (G:\ORDER CONTROLS\SAINSBURYS ORDER CONTROL\2018\06 June 2018\WE 02 JUNE 2018\)
In cell E3 I would like to have the Day (Sun)
In cell E4 I would like to have the Date (27 May 2018)
In cell E8 I would like to be able to use the contents of E2:E4 in the equation, but I don't know if this is possible.

This is how I envisioned it@

Code:
="E2"&"E3"& "[E4"&" JS.xlsx]"PALLET SHEET CALCULATOR'!$A$16*$D$8

Is this even possible? I would like to do this as then I can change the directory information with ease for the rest of the year and for future years with little input.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Forgive my inability, but that thread doesn't seem to help me.

My workbooks will be closed, hence the braces around my equations.

My biggest issue is that when I link to cell E4, I am given the numerical number for the date and not the text. I can't get around that.
 
Upvote 0
On the contrary, it does. It's something like INDIRECT that you need. Since INDIRECT won't work, you need PULL.

Try to examine the PULL usage in some examples, you'll get the gist.
 
Upvote 0
I've read some of the examples, and currently can't see the fit.

Right now, the only issue I have is that if I link to Cell E4 (27 May 2018) with "=E4" - the result is 43247

This makes including it in the sum impossible. Is it possible to include the text value rather than the numerical value.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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