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, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
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, 2 months 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 -
krweaver
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
-
TikTok fined €530 million for sending European user data to China
by
Nibbled To Death By Ducks
2 minutes ago -
Microsoft Speech Recognition Service Error Code 1002
by
stanhutchings
6 hours, 7 minutes ago -
Best and easiest way to Split PST File (Awaiting moderation)
by
Jamesjackson0847
2 hours, 29 minutes ago -
Is it a bug or is it expected?
by
Susan Bradley
5 hours, 2 minutes ago -
Image for Windows TBwinRE image not enough space on target location
by
bobolink
2 hours, 40 minutes ago -
Start menu jump lists for some apps might not work as expected on Windows 10
by
Susan Bradley
10 hours, 40 minutes ago -
Malicious Go Modules disk-wiping malware
by
Alex5723
16 minutes ago -
Multiple Partitions?
by
CWBillow
56 minutes ago -
World Passkey Day 2025
by
Alex5723
18 hours, 15 minutes ago -
Add serial device in Windows 11
by
Theodore Dawson
1 day, 9 hours ago -
Windows 11 users reportedly losing data due forced BitLocker encryption
by
Alex5723
6 hours, 9 minutes ago -
Cached credentials is not a new bug
by
Susan Bradley
1 day, 14 hours ago -
Win11 24H4 Slow!
by
Bob Bible
1 day, 14 hours ago -
Microsoft hiking XBox prices starting today due to Trump’s tariffs
by
Alex5723
1 day, 11 hours ago -
Asus adds “movement sensor” to their Graphics cards
by
n0ads
1 day, 16 hours ago -
‘Minority Report’ coming to NYC
by
Alex5723
1 day, 12 hours ago -
Apple notifies new victims of spyware attacks across the world
by
Alex5723
2 days, 1 hour ago -
Tracking content block list GONE in Firefox 138
by
Bob99
2 days ago -
How do I migrate Password Managers
by
Rush2112
1 day, 8 hours ago -
Orb : how fast is my Internet connection
by
Alex5723
1 day, 10 hours ago -
Solid color background slows Windows 7 login
by
Alex5723
2 days, 12 hours ago -
Windows 11, version 24H2 might not download via Windows Server Updates Services
by
Alex5723
2 days, 11 hours ago -
Security fixes for Firefox
by
Susan Bradley
1 day, 11 hours ago -
Notice on termination of services of LG Mobile Phone Software Updates
by
Alex5723
2 days, 23 hours ago -
Update your Apple Devices Wormable Zero-Click Remote Code Execution in AirPlay..
by
Alex5723
3 days, 8 hours ago -
Amazon denies it had plans to be clear about consumer tariff costs
by
Alex5723
2 days, 23 hours ago -
Return of the brain dead FF sidebar
by
EricB
2 days, 10 hours ago -
Windows Settings Managed by your Organization
by
WSDavidO61
1 day, 13 hours ago -
Securing Laptop for Trustee Administrattor
by
PeachesP
15 hours, 47 minutes ago -
The local account tax
by
Susan Bradley
2 days, 12 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.