Show Cost Year

ExcelNovice2017

New Member
Joined
Nov 29, 2017
Messages
17
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Good Afternoon All

I was hoping you could help with the below example, which I'm sure is fairly simple but I'm not sure where to start

[TABLE="width: 500"]
<tbody>[TR]
[TD]2019[/TD]
[TD]2020[/TD]
[TD]2021[/TD]
[TD]2022[/TD]
[TD]2023[/TD]
[TD]2024[/TD]
[TD]2025[/TD]
[TD]2026[/TD]
[TD]2027[/TD]
[TD]2028[/TD]
[TD]Recommended Year[/TD]
[/TR]
[TR]
[TD]6640[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]2019[/TD]
[/TR]
</tbody>[/TABLE]

I was hoping to use a formula in the recommended year, that says pick any value above '0' and show the year that value sits in

They will only ever be one value above 0

Any help would be much appreciated
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Book1
ABCDEFGHIJK
12019202020212022202320242025202620272028Recommended Year
266400000000002019
Sheet1
Cell Formulas
RangeFormula
K2=INDEX(A1:J1,MATCH(MAX(A2:J2),A2:J2,0))
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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