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
 
What about
=IF(B2="","",IFERROR(INDEX(A2:G2,AGGREGATE(14,6,COLUMN(A2:H2)/(COLUMN(A2:H2)<AGGREGATE(15,6,COLUMN(A2:H2)/((A2:H2)=""),1)),1)),""))

Book1
ABCDEFGHI
1
202,74,74,7
30 
402,74,710,74,7
506,78,710,7 
602,74,74,7
702,74,76,78,78,7
806,78,710,7 
94,76,78,710,712,7 
1002,74,76,78,710,712,712,7
Sheet1
Cell Formulas
RangeFormula
I2:I10I2=IF(B2="","",IFERROR(INDEX(A2:G2,AGGREGATE(14,6,COLUMN(A2:H2)/(COLUMN(A2:H2)<AGGREGATE(15,6,COLUMN(A2:H2)/((A2:H2)=""),1)),1)),""))
 
Upvote 0

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
What about
=IF(B2="","",IFERROR(INDEX(A2:G2,AGGREGATE(14,6,COLUMN(A2:H2)/(COLUMN(A2:H2)<AGGREGATE(15,6,COLUMN(A2:H2)/((A2:H2)=""),1)),1)),""))

Book1
ABCDEFGHI
1
202,74,74,7
30 
402,74,710,74,7
506,78,710,7 
602,74,74,7
702,74,76,78,78,7
806,78,710,7 
94,76,78,710,712,7 
1002,74,76,78,710,712,712,7
Sheet1
Cell Formulas
RangeFormula
I2:I10I2=IF(B2="","",IFERROR(INDEX(A2:G2,AGGREGATE(14,6,COLUMN(A2:H2)/(COLUMN(A2:H2)<AGGREGATE(15,6,COLUMN(A2:H2)/((A2:H2)=""),1)),1)),""))
What about
=IF(B2="","",IFERROR(INDEX(A2:G2,AGGREGATE(14,6,COLUMN(A2:H2)/(COLUMN(A2:H2)<AGGREGATE(15,6,COLUMN(A2:H2)/((A2:H2)=""),1)),1)),""))

Book1
ABCDEFGHI
1
202,74,74,7
30 
402,74,710,74,7
506,78,710,7 
602,74,74,7
702,74,76,78,78,7
806,78,710,7 
94,76,78,710,712,7 
1002,74,76,78,710,712,712,7
Sheet1
Cell Formulas
RangeFormula
I2:I10I2=IF(B2="","",IFERROR(INDEX(A2:G2,AGGREGATE(14,6,COLUMN(A2:H2)/(COLUMN(A2:H2)<AGGREGATE(15,6,COLUMN(A2:H2)/((A2:H2)=""),1)),1)),""))

It works thank you so much
 
Upvote 0
yes they are
Thanks. Then depending on your exact circumstances, you could also try any of these.

20 04 22.xlsm
ABCDEFGHIJK
1
202.74.74.74.74.7
30   
402.74.710.74.74.74.7
506.78.710.7   
602.74.74.74.74.7
702.74.76.78.78.78.78.7
806.78.710.7   
94.76.78.710.712.7   
1002.74.76.78.710.712.712.712.712.7
Sheet2 (3)
Cell Formulas
RangeFormula
I2:I10I2=IF(COUNT(A2:B2)=2,INDEX(A2:G2,MATCH(1,(B2:H2="")*(A2:G2<>""),0)),"")
J2:J10J2=IF(COUNT(A2:B2)=2,INDEX(FILTER(B2:F2,(B2:F2<>"")*(C2:G2=""),G2),1),"")
K2:K10K2=IF(COUNT(A2:B2)=2,IF(COUNTBLANK(A2:G2),MINIFS(B2:G2,B2:G2,"<>",C2:H2,""),G2),"")
 
Upvote 0

Forum statistics

Threads
1,214,553
Messages
6,120,176
Members
448,948
Latest member
spamiki

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