Compute data in other cell if cell is blank

RoxyS

New Member
Joined
Mar 8, 2019
Messages
5
Question: How many employees were promoted more than 7 months ago (Column C)? If they were not promoted, then how many employees were hired more than 7 months ago (Column B)?

EmployeeHire DateLast Promotion Date
Employee 1
09/12/2013

<tbody>
</tbody>
01/01/2018
Employee 2
18/04/2018

<tbody>
</tbody>
Employee 3
11/06/2018

<tbody>
</tbody>
Employee 4
02/08/2019

<tbody>
</tbody>
Employee 5
16/05/2016

<tbody>
</tbody>
11/07/2019

<tbody>
</tbody>
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Let's establish something first.
More than 7 months ago means more than 7 months, ie 8, 9, 10, 11, 12, months etc
Not 7.
7 is not more than 7.
If you mean 7 or more then you need to include an equals in the formulas below.

Based on that

How many promoted more than 7 months ago
=SUMPRODUCT((DATEDIF(C1:C5,TODAY(),"m")>7)*(C1:C5<>""))

How many hired more than 7 months ago that were not promoted
=SUMPRODUCT((DATEDIF(B1:B5,TODAY(),"m")>7)*(C1:C5=""))
 
Last edited:
Upvote 0
Another option

Excel Workbook
ABCDEF
1EmployeeHire DateLast Promotion DatePromoted > 7 months ago:1
2Employee 19/12/20131/01/2018Not Promoted but Hired > 7 months ago:2
3Employee 218/04/2018
4Employee 311/06/2018
5Employee 42/08/2019
6Employee 516/05/201611/07/2019
Count
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,449
Members
448,966
Latest member
DannyC96

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