Trying to get max of a column from a range of cells in a different column.

sheaww200571

New Member
Joined
Aug 31, 2022
Messages
4
Office Version
  1. 2013
Platform
  1. Windows
Hello, hoping someone can give me some help with this spreadsheet from work. In the circled cell I need the max number in column B. But not the entire column, only the range that’s shown in the cells with the arrows over them. So in this instance, I need the max of B2:B122. Is it possible to input the range I need in these two cells and it carry over to give me the max in the circled cell?
 

Attachments

  • 1D9CFCD2-CDA1-4CD8-B602-C3174E730DE8.jpeg
    1D9CFCD2-CDA1-4CD8-B602-C3174E730DE8.jpeg
    108.3 KB · Views: 11

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.
You could try something like
Excel Formula:
=MAX(INDEX(B:B,A1):INDEX(B:B,A2))
Where A1 and A2 refer to the 2 cells work the yellow arrows in your image.
 
Upvote 0
That worked great! Thank you so much!! One more question, With the formula you provided on some of the slots where I don’t have data for the day and put a “zero” in my two range cells it’s giving me the MAX for the entire B:B column. Is there a way to make the circled cell show zero as well?
 

Attachments

  • A039DA23-95FD-4801-8FA6-53EC577250ED.jpeg
    A039DA23-95FD-4801-8FA6-53EC577250ED.jpeg
    114.1 KB · Views: 6
Upvote 0
How about like
Excel Formula:
=IF(OR(A1=0,A2=0),0,MAX(INDEX(B:B,A1):INDEX(B:B,A2)))
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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