Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-27-2016, 08:26 AM
AlwaysSometimesLearning AlwaysSometimesLearning is offline Looking for formula Windows 10 Looking for formula Office 2016
Novice
Looking for formula
 
Join Date: Nov 2016
Posts: 3
AlwaysSometimesLearning is on a distinguished road
Default Looking for formula

Sorry if this request seems rather basic to most or the description of what I want vague, I am rather new to using excel for manipulating my data.

Essentially I want to do something similar to a VLOOKUP (maybe not but this is the function I know).


Lookup a value within a range of data but then I want the formula to return the greatest value out of the return cells.
I would also like to find the lowest value but as a separate formula.

E.g.
You have a sheet with "Part Numbers" in Column A, "Quantity" in Column B.
I want to be able to lookup a part number and return the highest quantity of that part in the data range.
In a second formula I want to return the lowest.
Assume a part number will appear within the data range multiple times but with different quantities.

Thank you in advance for any and all help
Reply With Quote
  #2  
Old 11-27-2016, 08:38 AM
joeu2004 joeu2004 is offline Looking for formula Windows 7 32bit Looking for formula Office 2007
Advanced Beginner
 
Join Date: Aug 2016
Posts: 32
joeu2004 is on a distinguished road
Default

Array-enter (press ctrl+shift+Enter instead of just Enter) the following formulas:

=MAX(IF(A1:A100=C1,B1:B100))

=MIN(IF(A1:A100=C1,B1:B100))

where C1 contains the part "number" entered as the same type as the values in column A (text or numeric).
Reply With Quote
  #3  
Old 11-27-2016, 09:08 AM
AlwaysSometimesLearning AlwaysSometimesLearning is offline Looking for formula Windows 10 Looking for formula Office 2016
Novice
Looking for formula
 
Join Date: Nov 2016
Posts: 3
AlwaysSometimesLearning is on a distinguished road
Default

Thanks for the quick response.

I gave it a go, it looks in concept like what I need but it has the issue of returning the greatest value in B1:B100 regardless if that particular value is associated with the value in C1. It seems to be just checking if A1:A100 has the C1 value but not using it again for the filtering.
Reply With Quote
  #4  
Old 11-27-2016, 10:15 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Looking for formula Windows 7 64bit Looking for formula Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Perhaps post a sample sheet? ( Go Advanced - Manage attachments)
Did you commit the formula correctly?
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #5  
Old 11-27-2016, 11:43 AM
AlwaysSometimesLearning AlwaysSometimesLearning is offline Looking for formula Windows 10 Looking for formula Office 2016
Novice
Looking for formula
 
Join Date: Nov 2016
Posts: 3
AlwaysSometimesLearning is on a distinguished road
Default

Never mind, found the issue, thank you for your time and help!
Now is it possible to add another column of data to the formula as an added step for filtering the results?

E.g.
In the provided spreadsheet could I also have the formula filter for only those that have TRUE in column C.
Attached Files
File Type: xlsx FormulaTestSheetASL.xlsx (9.1 KB, 16 views)
Reply With Quote
  #6  
Old 11-27-2016, 12:38 PM
jeffreybrown jeffreybrown is offline Looking for formula Windows Vista Looking for formula Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

Just add another logical test to the TRUE side of the IF statement.

=MAX(IF(A2:A19=D2,IF(C2:C19=TRUE,B2:B19)))
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for formula Possible to use an existing vlookup formula to also insert correct info and trigger a SUM formula innkeeper9 Excel 2 09-13-2016 08:59 PM
Looking for formula Formula Help yljayhawk Excel 5 07-11-2016 06:14 AM
Need help with dragging a formula and changing a reference column as I drag the formula. LupeB Excel 1 10-22-2015 03:02 PM
Looking for formula Formula Help withersd46260 Excel 2 04-30-2014 08:33 AM
Looking for formula Help with formula please. AndrewSE Excel 3 04-05-2011 08:50 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:56 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft