I have a 2-column worksheet of dates and data. The first column lists the dates that I record certain prices in the second column. In other words, the first column lists dates and the second column contains data.
What I want to do is find both the maximum and minimum values in the column of data, and the date (in column 1) those max and min values occur. I know I have to use the Offset() function, but when I tried to use it, I didn’t understand the directions/parameters.
Any help?
Thanks,
Jeff
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Offset() (2000)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Offset() (2000)
- This topic has 13 replies, 3 voices, and was last updated 23 years ago.
AuthorTopicWSjlkirk
AskWoody LoungerMarch 9, 2002 at 7:43 am #367967Viewing 0 reply threadsAuthorReplies-
WSAladin Akyurek
AskWoody LoungerMarch 9, 2002 at 9:06 am #575343You don’t need OFFSET per se for what you want.
Consider the following sample in A1:B7.
{“Date”,”Price”;
37258,3.4;
37258,2.8;
37317,3.4;
37470,7.8;
37379,7.8;
37440,6.4}The funny looking numbers are really dates in the internal representation of Excel.
In D2 enter: =MIN(B:
[ or the definite range: B2:B7 instead of B:B ]
In D3 enter: =MAX(B:
[ or the definite range: B2:B7 instead of B:B ]
In E2 enter: =INDEX(A:A,MATCH(D2,B:B,0)) [ or the definite ranges: A2:A7 and B2:B7 instead of A:A and B:B, respectively ]
Note. MATCH will return the first date value it finds associated with MAX (or MIN) value, while it is possible that there are more dates on which the price can be at its, e.g., MAX.
-
WSjlkirk
AskWoody Lounger -
WSAladin Akyurek
AskWoody LoungerMarch 9, 2002 at 12:10 pm #575346Jeff,
Last request wrt MIN & MAX calcs invites using OFFSET!
In D1 enter: =MATCH(9.99999999999999E+307,A:A)
In D2 array-enter: =MIN(IF(OFFSET(B2,0,0,D1,1),OFFSET(B2,0,0,D1,1)))
In D3 enter: =MAX(OFFSET(B2,0,0,D1,1))
To array-enter a formula, you need to hit control+shift+enter at the same time, not just enter.
Aladin
-
WSjlkirk
AskWoody Lounger -
WSAladin Akyurek
AskWoody LoungerMarch 9, 2002 at 2:28 pm #575352Jeff,
wrt is the acronym for ‘with respect to’.
It seems to me you’ve got the formulas of my initial reply working.
I just changed the formulas that go in D2 and D3 into array-formulas to compute MIN and MAX such a way the zeroes and blank cells are ignored. In order to do that, I suggested an additional formula that goes into D1 whose result is used by the array-formulas.
I’ll try to attach a file: it contains more than I gave you. Just look at the formulas that I proposed. [ I deleted the attachment, fearing confusion. See the attachments posted later in the thread ]
Aladin
-
WSjlkirk
AskWoody LoungerMarch 9, 2002 at 10:21 am #575353 -
krweaver
AskWoody Lounger -
WSAladin Akyurek
AskWoody Lounger -
WSAladin Akyurek
AskWoody LoungerMarch 9, 2002 at 2:51 pm #575360Jeff,
I think I forgat to include in my attachment the offset formulas that I suggested (see the edited post).
If you want to use those formulas (see the new attachment, the modified version of yours), you can’t put them underneath the data. That is, A and B must have nothing but the relevant data.
Aladin
-
-
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Limits on User Names
by
CWBillow
5 hours, 39 minutes ago -
Limits on User Names
by
CWBillow
3 hours, 37 minutes ago -
MS-DEFCON 4: Mixed bag for March
by
Susan Bradley
3 minutes ago -
Non Apple Keyboards
by
pmcjr6142
13 hours, 26 minutes ago -
How to delete your 23andMe data – The Verge
by
AJNorth
1 hour, 26 minutes ago -
7 common myths about Windows 11 (Microsoft AD)
by
EyesOnWindows
3 hours, 22 minutes ago -
Error updating to Win11 0x8024a205
by
bmeacham
17 hours, 55 minutes ago -
default apps
by
chasfinn
17 hours, 37 minutes ago -
Will MS Works 4 work in MS Win 11?
by
MileHighFlyer
1 day, 1 hour ago -
Adding links to text in Word 2000
by
sgeneris
17 hours, 33 minutes ago -
FBI warnings are true—fake file converters do push malware
by
Nibbled To Death By Ducks
19 hours, 10 minutes ago -
Classic and Extended Control Panel — no need to say goodbye
by
Deanna McElveen
9 hours, 7 minutes ago -
Things you can do in 2025 that you couldn’t do in 2024
by
Max Stul Oppenheimer
1 day, 6 hours ago -
Revisiting Windows 11’s File Explorer
by
Will Fastie
15 hours, 1 minute ago -
Planning ahead for migration
by
Susan Bradley
10 hours ago -
Yahoo mail getting ornery
by
Tom in Az
17 hours, 46 minutes ago -
Is Spectrum discontinuing email service?
by
Peobody
21 hours, 17 minutes ago -
Practice what you preach! A cautionary tale.
by
RetiredGeek
17 hours, 49 minutes ago -
Looking for Microsoft Defender Manuals/Tutorial
by
blueboy714
22 hours, 1 minute ago -
Win 11 24H2 Home or Pro?
by
CWBillow
18 hours, 32 minutes ago -
Bipartisan Effort to Sunset the ‘26 Words That Created the Internet’..
by
Alex5723
3 days, 4 hours ago -
Outlook new and edge do not load
by
cHJARLES a pECKHAM
3 days, 16 hours ago -
Problem using exfat drives for backup
by
Danmc
3 days, 16 hours ago -
I hate that AI is on every computer we have!
by
1bumthumb
2 days, 18 hours ago -
Change Info in the Settings window
by
CWBillow
3 days, 23 hours ago -
Attestation readiness verifier for TPM reliability
by
Alex5723
4 days, 5 hours ago -
Windows Update says that “some settings are managed b your organization”
by
Ed Willers
3 days, 15 hours ago -
Use of Gmail rejected.
by
CBFPD-Chief115
3 days, 16 hours ago -
WuMgr operational questions
by
Tex265
17 hours, 21 minutes ago -
Beijing’s unprecedented half-marathon: Humans vs. humanoids!
by
Alex5723
4 days, 21 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.