finding max value

miisstina

New Member
Joined
Sep 27, 2014
Messages
10
So i have one cloum that states the days of the week i.e. Monday Tuesday etc. And a column right besides it that states prices. What my subroutine is suppose to do is initially find the day of the week the user wants to search for (i.e. search for Friday1). Once it does that its suppose to find the highest value in the price column up to and including the day of the week that was search.

I am able to do the first part (i.e. search for the day of the week using arrays)
howeve am unsure of how to find the max value.
Any ideas how i can continue?
 

Some videos you may like

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

FDibbins

Well-known Member
Joined
Feb 16, 2013
Messages
6,723
Maybe something like this ARRAY formula (you will need to adjust the ranges to suite...
=MAX(IF(A2:A7="Friday",B2:B7,0))
 

Watch MrExcel Video

Forum statistics

Threads
1,109,428
Messages
5,528,698
Members
409,830
Latest member
KT50

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top