counting blanks.

btardo01

Board Regular
Joined
Oct 6, 2009
Messages
168
Office Version
  1. 2016
Platform
  1. Windows
Good morning.

I have the below information and I am trying to find a formula to complete column U. Cell B1 and B2 play a role. Basically, I would like the formulas in U5:U7 to look at the period between the effective date (column B) through the min of either the Current Month end (cell B1) minus MoDelay (cell B2)....in this example that results in 3/31/2019 OR exp.date (column c). If the effective date is prior to the first date then is just begins at the beginning.

The date ranges references in range D3:S4 will change on occasion so I'm hoping to make the formulas dynamic enough to use the date reference to find the starting and ending points. Also, I'd love it if can avoid arrays formulas.

For example:
U5 looks in range D5:O5 and sees no blanks so results in a "N"
U6 looks in range G6:R6 and sees blanks so results in a "Y"
U7 looks in range P7:R7 and sees no blanks so results in a "N"

ABCDEFGHIJKLMNOPQRSTUV
1CurrentME4/30/2019
2MoDelay1
32018201820182018201820182018201820182018201820182019201920192019Missing
4GroupEff.DateExp.DateJanFebMarAprMayJunJulAugSepOctNovDecJanFebMarApr
5RckyMtn1/1/20171/1/2019152231251615413031221755254232
N
6SmJones4/1/20184/1/20191009268
1524543910816
7119Y
7TabletView1/1/20191/1/202015223119N
8
6

<tbody>
</tbody>
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Try this in U5:

=IF(SUMPRODUCT(--(D5:S5=""),--(DATEVALUE(D$4:S$4&" 1, "&D$3:S$3)>=B5),--(DATEVALUE(D$4:S$4&" 1, "&D$3:S$3)<=MIN(EOMONTH($B$1,-$B$2),C5)))=0,"N","Y")

and drag down.
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,955
Members
449,199
Latest member
Riley Johnson

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