Creating a value to be returned based on the maximum value

zilch4ry

Board Regular
Joined
Feb 27, 2011
Messages
76
hi all,

right this is a hard question - i have 4 values which are being found using a vlookup- the vlookup is gathering data from a table which is based off of which day of the week it is. the 4 pieces of data have been set into 4, 4 hour gap groups (between 6-10 am, 10-2pm,2-6pm,6-10pm). is it possible to find the busiest hour using something like, =max(g10,g12,l10,12) but instead of showing the maximum number, it shows the hour the value is from. so something like =if (this value is the maximum number, then show this hour, if it isnt show nothing) and so on with all the values.

if that made sense to anybody you are a smart person ;) but seriously any help would be GREAT!

Thanks everyone,


Tom
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Looks a bit simple, hope not missed anything, here is my 2 cents on this :
Assuming the table of lookup already setup and working, that is the table shown if the lookup result.



Excel Workbook
ABCDEF
2Day of the week6-10 am10-2 pm2-6 pm6-10 pmTime @ Max
3Monday13914012913410-2 pm
4Tuesday10513712612210-2 pm
5Wednesday1481451271686-10 pm
6Thursday1481071291716-10 pm
7Friday15518817917510-2 pm
8Saturday1961711711966-10 am
9Sunday1891861581866-10 am
10Monday1361731851886-10 pm
11Tuesday1881791901512-6 pm
12Wednesday1181511751826-10 pm
13Thursday14215912914110-2 pm
Sheet2
 
Upvote 0
Hi,

heres the screen shot of my tables, i think it might be a little hard to do something based off of them, considering i have placed the titles in shapes. I was hoping more for a formula answer.

screen shot:

tinypic.com


What i want is the highest value (in green) of the day (in each table) to be shown and if there are two highest values for them to be seperated using something like a comma :P for the life of me i cannot even get close to doing this
 
Last edited:
Upvote 0
see if this works for you,


Excel Workbook
ABCDEFGHIJK
1Table named range : R_6_10Table named range : R_10_14
206:00_10:00Average No. of items purchased per customer visitAverage No. customers per hourAverage No. of Customers 1 staff member can get through per hrNo. of tills needed per hour open-w/4 customers in a que10:00_14:00Average No. of items purchased per customer visitAverage No. customers per hourAverage No. of Customers 1 staff member can get through per hrNo. of tills needed per hour open-w/4 customers in a que
3Monday18014710010Monday20180261
4Tuesday60300262Tuesday1501603030
5Wednesday600262Wednesday7010262
6Thursday190200262Thursday10200262
7Friday60280263Friday70280263
8Saturday603066060Saturday70280263
9Sunday60110261Sunday701078070
10
11Table named range : R_18_22Table named range : R_18_22
1214:00_18:00Average No. of items purchased per customer visitAverage No. customers per hourAverage No. of Customers 1 staff member can get through per hrNo. of tills needed per hour open-w/4 customers in a que18:00_22:00Average No. of items purchased per customer visitAverage No. customers per hourAverage No. of Customers 1 staff member can get through per hrNo. of tills needed per hour open-w/4 customers in a que
13Monday200147261Monday90147261
14Tuesday80160262Tuesday90160262
15Wednesday8004040Wednesday30160262
16Thursday80300262Thursday302005050
17Friday1202803510Friday300302263
18Saturday1000280263Saturday90280263
19Sunday801072680Sunday90107261
20
21
23
24
2506:00_10:0010:00_14:0014:00_18:0018:00_22:00
26Monday100   
27Tuesday30
28Wednesday40
29Thursday50
30Friday35
31Saturday60
32Sunday80
Sheet1 (2)
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,486
Members
452,917
Latest member
MrsMSalt

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top