Dynamic Charts

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
580
Office Version
  1. 365
I have the following formula -
Excel Formula:
=OFFSET(Sheet1!!$B$1,COUNTA(Sheet1!!$B:$B)-Sheet1!!$D$2,0,Sheet1!$D$2,1)
- however, this looks at the bottom of my data, and takes it from there... What I am after is for this to take it from the top (excluding headers, so row 2 downwards) -

COLUMN A is date
COLUMN B is data
COLUMN D is the number of rows of data I want returned. So if I have entered "5" in D2, at present it goes to the bottom of my data sheet, and generates the table/graph from that.... I need it to be rows 2,3,4,5 and 6 (based on 5 returns)...

Due to the data in the table I cannot simply flip the data around......

Thanks, as ever, to everyone in advance :)
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
How about
Excel Formula:
=OFFSET(Sheet1!!$B$2,0,0,Sheet1!$D$2,1)
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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