We'd like to remind Forumites to please avoid political debate on the Forum... Read More »
We're aware that some users are experiencing technical issues which the team are working to resolve. Thank you for your patience.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
Excel Formula
Options
Comments
-
Are you sure that works @double_dutchy ?
0 -
Heedtheadvice said:Are you sure that works @double_dutchy ?0
-
I did not need to.Granted it may work on some data circumstances such as
item price formula Item A £1.00 4 Item A £2.00 Item B £3.00 Item A £4.00 Item B £5.00 Item C £6.00 (Price column formated as currency formula used as supplied by Double_dutchy)But it fails in other cases where the data prices are not on ascending order. As belowitem price formula Item A £1.00 4 Item A £10.00 Item B £3.00 Item A £4.00 Item B £5.00 Item C £6.00 Answer given by the formula is still 4 but it should be 10....
[ EDIT: see posts below as the assumption here is that max price is required not just the item furthest down the column....]
0 -
Heedtheadvice said:I did not need to.Granted it may work on some data circumstances such as
item price formula Item A £1.00 4 Item A £2.00 Item B £3.00 Item A £4.00 Item B £5.00 Item C £6.00 (Price column formated as currency formula used as supplied by Double_dutchy)But it fails in other cases where the data prices are not on ascending order. As belowitem price formula Item A £1.00 4 Item A £10.00 Item B £3.00 Item A £4.00 Item B £5.00 Item C £6.00 Answer given by the formula is still 4 but it should be 10....
In the real world you'd really expect some form of date stamp or something else in the table that defines the order rather than arbitrary sort.1 -
True that is what was written and to that extent the formula does work. So apology to @double_dutchy !However I assumed ( perhaps incorrectly) given that all the prices were in ascending order that the max was required not just the lowest in the column. As you say date/time stamping is really required in that case as it is easy to mix up the order unintentionally either at data entry or with a data sort.Perhaps the OP will clarify the need if not for their own benefit but for others who might be learning from this thread?1
-
I was, indeed, assuming that the requirement was to get the last row where the criterion was satisfied, as DullGreyGuy says. My suggested LOOKUP formula will do that, as will the XLOOKUP formula suggested. If the requirement was to get the largest value where the criterion is satisfied then in the latest versions of Excel you could use MAXIFS function, i.e.
=MAXIFS(B:B,A:A,"Item A")
0 -
A great addition to up to date Excel versions. There are are lot of new ones now but I admit I am old school so glad others can inform us about.
0 -
For thiose with a Kindle you can buy/download ***how to use microsoft excel *** I managed to find one for Free and very handy at times.
0
Confirm your email address to Create Threads and Reply

Categories
- All Categories
- 350.6K Banking & Borrowing
- 253K Reduce Debt & Boost Income
- 453.4K Spending & Discounts
- 243.6K Work, Benefits & Business
- 598.4K Mortgages, Homes & Bills
- 176.8K Life & Family
- 256.8K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.1K Discuss & Feedback
- 37.6K Read-Only Boards