Chakeyla

New Member
Joined
Oct 30, 2006
Messages
6
I would like to write a formula that looks at the last month with a percent value greater than zero, then return the percent value in a specific cell. In the example below I want to display 85.0% in the cell. It should update each time data is entered for the following month.

Here is the source:

Month Percentage
October 96.0%
November 2.0%
December 70.0%
January 85.0%
February 0.0%
March 0.0%
April 0.0%
May 0.0%
June 0.0%
July 0.0%
August 0.0%
September 0.0%

Thanks!
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi Chakeyla,

Try this:
Excel Workbook
ABCD
1Month Percentage
2October96.00%0.85
3November2.00%
4December70.00%
5January85.00%
6February0.00%
7March0.00%
8April0.00%
9May0.00%
10June0.00%
11July0.00%
12August0.00%
13September0.00%
Sheet1
Excel 2003
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
 
Upvote 0
Not thoroughly tested, but I think this will work:

=RIGHT(OFFSET(A4,MATCH("*" & " 0.0%",A4:A16,0)-2,0), 5)

By the way, I assumed that your Months and values were in the same cell. If they are in different cells, then it is much easier.
 
Upvote 0
Hi Chakeyla,

Try this:
Excel Workbook
ABCD
1Month Percentage
2October96.00%0.85
3November2.00%
4December70.00%
5January85.00%
6February0.00%
7March0.00%
8April0.00%
9May0.00%
10June0.00%
11July0.00%
12August0.00%
13September0.00%
Sheet1
Excel 2003
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}. Note: Do not try and enter these manually yourself

Must have missed it by just second Tai
 
Upvote 0
I see the type now! Darn "J".

Better or not yours was a clever approach because it does not rely on the fact that 0 must always be populated.
 
Upvote 0

Forum statistics

Threads
1,213,526
Messages
6,114,136
Members
448,551
Latest member
Sienna de Souza

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