finding the last 3 months in a table

hg090589

New Member
Joined
Sep 18, 2018
Messages
11
Hello,

I have a table with months I and various figures for each month.

I am wanting to display in columns O the last 3 months that have data in column D (completed).
For Example below August, September and October should have a 1,2,3 in column O

This is what I have but it won't work.
=IF(AND(D4>0,ISBLANK(D5)),1,IF(O5=1,2,IF(O5=2,3,””)))



MonthTasks Scheduled by PiranaCompleted Pirana TasksIncomplete Pirana TasksCompletion RateTasks Scheduled by PiranaCompleted Pirana TasksIncomplete Pirana TasksCompletion rateTasks Scheduled by PiranaCompleted Pirana TasksIncomplete Pirana TasksCompletion Ratelast 3 momths
July 20181513266124618%2464420218%35171849%#NAME?
August 2018107913994013%115511943510%50133726%#NAME?
September 20181312306100523%294228078%2862221%#NAME?
October 20181898309158816%2263718516%3482624%#NAME?
November 2018000#DIV/0!000#DIV/0!000#DIV/0!#NAME?
December 2018000#DIV/0!000#DIV/0!000#DIV/0!#NAME?
January 2019000#DIV/0!000#DIV/0!000#DIV/0!#NAME?
February 2019000#DIV/0!000#DIV/0!000#DIV/0!#NAME?
March 2019000#DIV/0!000#DIV/0!000#DIV/0!#NAME?
April 2019000#DIV/0!000#DIV/0!000#DIV/0!#NAME?
May 2019000#DIV/0!000#DIV/0!000#DIV/0!#NAME?
June 2019000#DIV/0!000#DIV/0!000#DIV/0!#NAME?
July 2019000#DIV/0!000#DIV/0!000#DIV/0!#NAME?
August 2019000#DIV/0!000#DIV/0!000#DIV/0!#NAME?
September 2019000#DIV/0!000#DIV/0!000#DIV/0!#NAME?
October 2019000#DIV/0!000#DIV/0!000#DIV/0!#NAME?
November 2019000#DIV/0!000#DIV/0!000#DIV/0!#NAME?
December 2019000#DIV/0!000#DIV/0!000#DIV/0!#NAME?
<colgroup><col width="119" style="width: 89pt; mso-width-source: userset; mso-width-alt: 4352;"> <col width="71" style="width: 53pt; mso-width-source: userset; mso-width-alt: 2596;"> <col width="57" style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;"> <col width="64" style="width: 48pt;" span="9"> <col width="66" style="width: 50pt; mso-width-source: userset; mso-width-alt: 2413;"> <col width="64" style="width: 48pt;"> <tbody> </tbody>
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Re: finding the last 3 momths in a table

The quotes are the wrong type they should be " not ”
also you're testing if D5 is blank, but from your post it never will be.
 
Upvote 0
Re: finding the last 3 momths in a table

The quotes are the wrong type they should be " not ”
also you're testing if D5 is blank, but from your post it never will be.

Hi thanks for replying.

that quotes are right in my spreadsheet it’s just wrong on here for some reason.

Also i realised it is looking for blank, do you know how i would amend that formula to say greater anything but 0 instead of isblank


thanks for your help
 
Upvote 0
Re: finding the last 3 momths in a table

do you know how i would amend that formula to say greater anything but 0 instead of isblank
I am afraid that part in red is not very clear.

Do you want greater than zero like this:
Code:
D5>0
or equal to zero like this?
Code:
D5=0
 
Upvote 0

Forum statistics

Threads
1,215,707
Messages
6,126,353
Members
449,311
Latest member
accessbob

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