Choose max value two different columns.

white95gt

New Member
Joined
May 8, 2014
Messages
12
Hello,

i have a series of calculations in two columns running side by side. Sometimes i do not require both columns, sometimes it is required.

towards the end of the calculations i need to merge the two columns and choose the cell with the largest value to continue the final calculations. Also if i do not use the second column, I end up with #DIV/0! as a result and cannot figure out the formula to choose the higher cell value between them.

I tried important a clip of excell, so i made the simple table below to emulate an excell sheet. lets pretend answer 1 is cell:A1.

answer 1answer 2
150#DIV/0!
(max value)the max value
between the two columns

<TBODY>
</TBODY>
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
suppose you want to find largest value in column A and C

=MAX(A:A,C:C)
 
Upvote 0
Equation would work if both columns had actual #'s, however sometimes i have the error message and the calculation you provided will not work.
 
Last edited:
Upvote 0
It still will not operate with the #DIV/0! answer in one column, ive even tried iferror but i can not figure this one out.
 
Upvote 0
One more option would be to use AGGREGATE

=AGGREGATE(4,6,A2:A54,C2:C54)
 
Upvote 0
Thanks for your response. In the above formula 4 is for MAX function and 6 is for ignore error values.
 
Upvote 0
As i went through the formula, step by step and broke it down, i was able to understand the 4 and the 6, works perfectly.

I knew there was an answer, thanks for your help.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,731
Members
448,987
Latest member
marion_davis

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