Retrive the maximum value of a row, only if the entire row is filled with values. Can this be done without vba?

mcva

New Member
Joined
Apr 20, 2020
Messages
28
Office Version
  1. 365
Platform
  1. Windows
Hello, I have several sheets with this kind of format (7000 rows)
The output I need is the maximum value in each row. But I only want to retrive the value if the corresponding row is filled with values ...
Can this be done without vba?
Thank you.

Test.jpg
 

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.
Why is row 4 returning a valid value, even if there are blanks in the row?
And why row 6 isn't, though it is the same data as in row 2?
 
Upvote 0
Why is row 4 returning a valid value, even if there are blanks in the row?
And why row 6 isn't, though it is the same data as in row 2?
in row 4 all cells before the max (4.7) have values (0 and 2.7))
 
Upvote 0
Try this...

=IF(SUMPRODUCT(MAX((A2:G2<>"")*(COLUMN(A2:G2))))=COUNTA(A2:G2),MAX(A2:G2),"")
 
Upvote 0
Are the numbers that exist in any row always increasing left to right like in all your examples?
 
Upvote 0

Forum statistics

Threads
1,215,316
Messages
6,124,228
Members
449,149
Latest member
mwdbActuary

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