Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-29-2017, 12:20 PM
ddansie ddansie is offline Combined MAX and IF statements? Windows 7 32bit Combined MAX and IF statements? Office 2013
Novice
Combined MAX and IF statements?
 
Join Date: Jun 2017
Location: Utah
Posts: 6
ddansie is on a distinguished road
Default Combined MAX and IF statements?

I am using Excel 2013.
I have two sheets, 1st with the raw data, 2nd for a summary page.
Raw Data Page:
Column A List of locations
Column B Numbers


In Row 1 column B I have a MAX statement which gives me my MAX number.

Summary Page:
I want to be able to list the location that has the MAX number with the number next to it.

Any help would be greatly appreciated.

-Dale
Reply With Quote
  #2  
Old 06-29-2017, 08:18 PM
iclendening iclendening is offline Combined MAX and IF statements? Windows XP Combined MAX and IF statements? Office 2016
Novice
 
Join Date: Jun 2017
Posts: 1
iclendening is on a distinguished road
Default

I admit I started thinking about the problem just as you phrased it, 'how do I get the corresponding location value to my maximum number value'; however, this is best managed by a pivot table.

1. (optional) select data on sheet 1 and turn it into a table
2. create a pivot table
3. organize with list of locations in the 'rows' and numbers in the 'values'; ensure that values are set to show maximum (as opposed to sum etc).
4. right click on one of your maximum values shown for a given location and select 'organize by' and choose 'highest to lowest'. Your highest value is now at the top, and immediately left of it is the corresponding location.

hope that helps - the vlookup would not have been transparent to you about duplicates, this way you know if there is a tie for the winner.

ian.
Reply With Quote
  #3  
Old 06-30-2017, 02:57 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Combined MAX and IF statements? Windows 7 64bit Combined MAX and IF statements? Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,771
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

Posting a small sample sheet of your data would help
__________________
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
  #4  
Old 06-30-2017, 07:16 AM
ddansie ddansie is offline Combined MAX and IF statements? Windows 7 32bit Combined MAX and IF statements? Office 2013
Novice
Combined MAX and IF statements?
 
Join Date: Jun 2017
Location: Utah
Posts: 6
ddansie is on a distinguished road
Default Example

Here is a small example, not the real data. There are over 400 rows of data in the real one.
Attached Files
File Type: xlsx Example.xlsx (11.7 KB, 13 views)
Reply With Quote
  #5  
Old 06-30-2017, 11:55 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Combined MAX and IF statements? Windows 7 64bit Combined MAX and IF statements? Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,771
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

The location for the highest nr of " beds" can be obtained by =INDEX('RAW DATA'!$A$6:$A$12;MATCH(MAX('RAW DATA'!B$6:B$12);'RAW DATA'!B$6:B$12;0))
pull right for other values
For the lowest, the same, using MIN instead of MAX

This will work as long as the three columns stay in the same order on both pages.
If not, some tweaking is necessary but easy to do.

OTH what should happen if there is more than one MAX or MIN?
__________________
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
  #6  
Old 07-02-2017, 06:19 AM
ddansie ddansie is offline Combined MAX and IF statements? Windows 7 32bit Combined MAX and IF statements? Office 2013
Novice
Combined MAX and IF statements?
 
Join Date: Jun 2017
Location: Utah
Posts: 6
ddansie is on a distinguished road
Default

I'm not sure what you mean when you asked: "what should happen if there is more than one MAX or MIN?" Do you mean if there are two values that are the same?
Reply With Quote
  #7  
Old 07-05-2017, 08:26 AM
ddansie ddansie is offline Combined MAX and IF statements? Windows 7 32bit Combined MAX and IF statements? Office 2013
Novice
Combined MAX and IF statements?
 
Join Date: Jun 2017
Location: Utah
Posts: 6
ddansie is on a distinguished road
Default

This formula works, but the ";" needs to be replaced with ","

Thank you for your help.
Reply With Quote
  #8  
Old 07-05-2017, 08:31 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Combined MAX and IF statements? Windows 7 64bit Combined MAX and IF statements? Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,771
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

Oops, my mistake
And yes, what happens when you have a tie ( is that the correct word?)
__________________
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
  #9  
Old 07-05-2017, 08:49 AM
ddansie ddansie is offline Combined MAX and IF statements? Windows 7 32bit Combined MAX and IF statements? Office 2013
Novice
Combined MAX and IF statements?
 
Join Date: Jun 2017
Location: Utah
Posts: 6
ddansie is on a distinguished road
Default

With what I am doing the chances of that ever happening is slim to none (not saying that it would never happen), not sure what I will do at that point.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Combined MAX and IF statements? Odd Result In Combined Merged Time Fields JennEx Mail Merge 9 04-29-2017 08:58 AM
Combined MAX and IF statements? Why are my Macros combined into a single module? Cyberseeker Excel Programming 1 04-02-2017 02:43 AM
Combined MAX and IF statements? Can Text Label & PAGE Field be combined? binar Word 1 02-11-2013 03:07 AM
combined in-box for webmail accounts sonoman Outlook 1 07-19-2011 02:50 PM
word and excel combined jasperman Word 1 08-23-2010 06:49 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:11 PM.


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