Find Max Data within a range and repeat the max value next column between Zero

davidlimtw77

New Member
Joined
Oct 26, 2023
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi Anyone know what is the excel formula to find the max value within a range and repeat the max value new column within cell with number greater than zero.

1720206864328.png


Thanks

David
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Do you mean:

Excel Formula:
=IF(B2:B100>0,MAX(B2:B100),0)
 
Upvote 0
That didnt solve the problem, I am looking for a solution to find the max value within the range and repeat max value next column between the zeos.

1720207985989.png
 
Upvote 0
How about
Excel Formula:
=IF(B2=0,0,IF(N(C1)=0,MAX(B2:XLOOKUP(0,$B2:$B$1000,$B2:$B$1000,$B$1000)),C1))
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,954
Messages
6,175,603
Members
452,658
Latest member
GStorm

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