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
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
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
-
Practice what you preach! A cautionary tale.
by
RetiredGeek
3 hours, 35 minutes ago -
Looking for Microsoft Defender Manuals/Tutorial
by
blueboy714
23 hours, 27 minutes ago -
Win 11 24H2 Home or Pro?
by
CWBillow
9 hours, 47 minutes ago -
Bipartisan Effort to Sunset the ‘26 Words That Created the Internet’..
by
Alex5723
1 day, 7 hours ago -
Outlook new and edge do not load
by
cHJARLES a pECKHAM
1 day, 19 hours ago -
Problem using exfat drives for backup
by
Danmc
1 day, 20 hours ago -
I hate that AI is on every computer we have!
by
1bumthumb
22 hours, 7 minutes ago -
Change Info in the Settings window
by
CWBillow
2 days, 2 hours ago -
Attestation readiness verifier for TPM reliability
by
Alex5723
2 days, 9 hours ago -
Windows Update says that “some settings are managed b your organization”
by
Ed Willers
1 day, 18 hours ago -
Use of Gmail rejected.
by
CBFPD-Chief115
1 day, 19 hours ago -
WuMgr operational questions
by
Tex265
21 hours, 26 minutes ago -
Beijing’s unprecedented half-marathon: Humans vs. humanoids!
by
Alex5723
3 days ago -
New Phishing Campaign Targeted at Mac Users
by
Alex5723
2 days, 1 hour ago -
Backing up Google Calendar
by
CWBillow
3 days, 7 hours ago -
Windows 11 Insider Preview build 27818 released to Canary
by
joep517
3 days, 19 hours ago -
File Naming Conventions (including Folders)
by
Magic66
2 days, 18 hours ago -
Windows 11 Insider Preview Build 26100.3613 (24H2) released to Release Preview
by
joep517
4 days, 2 hours ago -
Microsoft sends emails to Windows 10 users about EOS
by
Alex5723
3 days, 13 hours ago -
Outlook 2024 importing Calendar and Contacts – FAILURE
by
Kathy Stevens
2 days, 19 hours ago -
Adding Microsoft Account.
by
DaveBRenn
4 days, 4 hours ago -
Windows 11 Insider Preview build 26120.3576 released to DEV and BETA
by
joep517
5 days, 3 hours ago -
Windows 11 Insider Preview Build 22635.5090 (23H2) released to BETA
by
joep517
5 days, 4 hours ago -
Windows 11 won’t boot
by
goducks25
2 days, 20 hours ago -
Choosing virtual machine product for Windows on Mac
by
peterb
4 days, 18 hours ago -
Rest in Peace
by
Roy Lasris
5 days, 22 hours ago -
CISA : Install Windows March 2025 Updates until April 1 or shut down PC.
by
Alex5723
2 days, 20 hours ago -
Google proposes users with incompatible Win 11 PCs to migrate to ChromeOS Flex
by
Alex5723
5 days, 23 hours ago -
Drivers for Epson Perfection V600 Photo – scanner
by
Bookman
2 days, 14 hours ago -
Long Time Member
by
jackpet
6 days, 1 hour 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.