Help with Excel for Mac 2011 - Functions

VillageGirl

New Member
Joined
Jun 14, 2016
Messages
2
Hello all, and thank you for whatever help you can provide.

I am using excel to look at historical financial data. I have used a query to pull and update historical stock data from Yahoo Finance. I need to lookup the cell with the lowest value, return that value and the date of that value to another part of the spreadsheet. I am using the following function successfully to find the cell address for the 90 day low.
=CELL("address",OFFSET(A1,MATCH(MIN(A1:A10),A1:A10,0)-1,0))​
I need to then
1. Have the value of the cell in another cell on the spreadsheet and
2. Have the value of the cell 3 columns to the left (Containing the date) in another cell.

The function above returns an absolute cell address, but I seem unable to manipulate this further to accomplish 1 and 2. Moreover, I need both 1 and 2 to recalculate whenever I refresh the data, so no hardcoding is possible.

I have googled extensively and don't even know how to phrase the question to get started. Any assistance to point me in the right direction would be most appreciated!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hello all, and thank you for whatever help you can provide.

I am using excel to look at historical financial data. I have used a query to pull and update historical stock data from Yahoo Finance. I need to lookup the cell with the lowest value, return that value and the date of that value to another part of the spreadsheet. I am using the following function successfully to find the cell address for the 90 day low.
=CELL("address",OFFSET(A1,MATCH(MIN(A1:A10),A1:A10,0)-1,0))​
I need to then
1. Have the value of the cell in another cell on the spreadsheet and
2. Have the value of the cell 3 columns to the left (Containing the date) in another cell.

The function above returns an absolute cell address, but I seem unable to manipulate this further to accomplish 1 and 2. Moreover, I need both 1 and 2 to recalculate whenever I refresh the data, so no hardcoding is possible.

I have googled extensively and don't even know how to phrase the question to get started. Any assistance to point me in the right direction would be most appreciated!

VillageGirl,
Welcome to the Boards.
I am using a PC with Windows 7 and Excel 2007...but since you are looking for a formula solution, you might see if the following formulas will work for you.

From what you described it appears that your data is formatted similarly to this:


Excel 2007
ABCDEF
1DateID
2150
3140
4130
5120
6110
7100
890
980
1070
116/14/201660Test1
1250
1340
1430
Sheet1


Your formula gives the address of the MIN value of the range in question. For demonstration I considered the range A1:F11. I adjusted your formula which became:

=CELL("address",OFFSET(D2,MATCH(MIN(D2:D11),D2:D11,0)-1,0))

To get the value (MIN value) I used the following formula in cell S8:

=MIN(IF(D2:D11<>0,D2:D11,FALSE))

Then to "Have the value of the cell in another cell on the spreadsheet ..." I used the following formula in cell S9:

=+DGET(A1:F11,"ID",S1:S8)

And finally, to "Have the value of the cell 3 columns to the left (Containing the date)..." I used the following formula in cell S10 and formatted the cell as a date, '6/14/2016':

=+DGET(A1:F11,"Date",S1:S8)

You can move your equations wherever you need to, but you must include the range from row 1 (if that is where your headers are) to the row where the MIN value is located in that column. So you could use H1:H2 in place of S1:S8 in the DGET formulas. You just have to include all the cells from the header row down to the cell with the MIN value in your range.
Give these formulae a try. Hopefully they are supported in Mac 2011.
Good luck.
Perpa
 
Upvote 0
Hi Perpa!

Thank you so much for your help and suggestions. I did manage to resolve all of my issues - not using your functions, but I think working through your suggestions really helped me to clarify what I needed and how to go about it.

So, here is what I did:

Example Chart
DateHighLowClose
14-Jun3,028.213,028.213,028.21
13-Jun3,130.433,130.433,130.43
12-Jun3,121.293,121.293,121.29
11-Jun3,117.623,117.623,117.62
10-Jun3,151.693,151.693,151.69
9-Jun3,142.523,142.523,142.52
8-Jun3,112.993,112.993,112.99
7-Jun3,064.033,064.033,064.03
6-Jun3,054.343,054.343,054.34
5-Jun3,060.863,060.863,060.86
4-Jun3,039.193,039.193,039.19
3-Jun2,942.092,942.092,942.09
2-Jun2,924.232,924.232,924.23
1-Jun2,911.982,911.982,911.98
31-May2,871.572,871.572,871.57
30-May2,909.362,909.362,909.36
29-May2,890.352,890.352,890.35
28-May2,962.282,962.282,962.28
27-May2,953.282,953.282,953.28
26-May3,004.933,004.933,004.93
25-May3,044.103,044.103,044.10
24-May3,004.873,004.873,004.87
23-May2,986.732,986.732,986.73
22-May3,042.423,042.423,042.42
21-May3,051.233,051.233,051.23
20-May3,043.103,043.103,043.10
19-May3,062.053,062.053,062.05
18-May3,067.213,067.213,067.21
17-May3,091.983,091.983,091.98
30 Day Low15
31-May2,871.57

<tbody>
</tbody>


So I used the Min function [=MIN(C2:C30)] to find the 30 day low point value.

Then I used the MATCH function [=MATCH(C34,C2:C30,0)] to give me the row number of the cell containing the 30 day low. In the example, this is the 15.

Finally, I used the Index function [=INDEX(A2:A30,C33,1)] to give me the date of the low. This function found the entry in the Date column in the same row as the 30 day low.

So thank you for your help. I hope this helps someone else too!

VillageGirl
 
Upvote 0
Hi Perpa!



So, here is what I did:Thank you so much for your help and suggestions. I did manage to resolve all of my issues - not using your functions, but I think working through your suggestions really helped me to clarify what I needed and how to go about it.

Example Chart
DateHighLowClose
14-Jun3,028.213,028.213,028.21
13-Jun3,130.433,130.433,130.43
12-Jun3,121.293,121.293,121.29
11-Jun3,117.623,117.623,117.62
10-Jun3,151.693,151.693,151.69
9-Jun3,142.523,142.523,142.52
8-Jun3,112.993,112.993,112.99
7-Jun3,064.033,064.033,064.03
6-Jun3,054.343,054.343,054.34
5-Jun3,060.863,060.863,060.86
4-Jun3,039.193,039.193,039.19
3-Jun2,942.092,942.092,942.09
2-Jun2,924.232,924.232,924.23
1-Jun2,911.982,911.982,911.98
31-May2,871.572,871.572,871.57
30-May2,909.362,909.362,909.36
29-May2,890.352,890.352,890.35
28-May2,962.282,962.282,962.28
27-May2,953.282,953.282,953.28
26-May3,004.933,004.933,004.93
25-May3,044.103,044.103,044.10
24-May3,004.873,004.873,004.87
23-May2,986.732,986.732,986.73
22-May3,042.423,042.423,042.42
21-May3,051.233,051.233,051.23
20-May3,043.103,043.103,043.10
19-May3,062.053,062.053,062.05
18-May3,067.213,067.213,067.21
17-May3,091.983,091.983,091.98
30 Day Low15
31-May2,871.57

<tbody>
</tbody>


So I used the Min function [=MIN(C2:C30)] to find the 30 day low point value.

Then I used the MATCH function [=MATCH(C34,C2:C30,0)] to give me the row number of the cell containing the 30 day low. In the example, this is the 15.

Finally, I used the Index function [=INDEX(A2:A30,C33,1)] to give me the date of the low. This function found the entry in the Date column in the same row as the 30 day low.

So thank you for your help. I hope this helps someone else too!

VillageGirl



VillageGirl,
I am glad you found your formulae, although what I offered couldn't have been much help now that I see your data.
Sometimes we over complicate things... Seeing what you wound up with makes much more sense than where we were going at the start.
It really helps to see the starting data. Nice job.
Perpa
 
Upvote 0

Forum statistics

Threads
1,214,823
Messages
6,121,780
Members
449,049
Latest member
greyangel23

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