An excel formula needed to determine T/F on dates

ItalianPlatinum

Well-known Member
Joined
Mar 23, 2017
Messages
857
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hello,
I need some help trying to create a formula that will identify if the date1 and date2 don't equal next BD -2 (i have that formula in a cell to reference).

There are a few variables though:
  1. indicator "I" will have the date 2 as 0
  2. indicator I and A date 1 and date 2 will be on a last BD of prior month -1 date on every BD 1 (this is ok). (i also have that formula in a cell to reference)
I know a lot going on. ideally would like 1 formula unless i need multiple helper columns to bring it together?

Book1
ABCDEFGHIJK
1AccountIndicatorDate 1Date 2Formula (HELP)Desired ResultNext BD -220230731LAST BD PM-120230730
21F2023073120230731FALSE
32F2023073120230731FALSE
43F2023073120230731FALSE
54F2023073120230731FALSE
65F2023073120230731FALSE
76F2023073120230731FALSE
87F2023073020230730TRUETEST
98F2023073020230731TRUETEST
109F2023073120230730TRUETEST
111I202307310TRUETEST
122I202307290TRUETEST
133I202307300FALSE
144I202307300FALSE
155I202307300FALSE
166I202307300FALSE
177I202307300FALSE
188I202307300FALSE
199I202307300FALSE
201A2023073020230730FALSE
212A2023073020230731TRUETEST
223A2023073120230730TRUETEST
234A2023072920230730TRUETEST
245A2023073020230729TRUETEST
256A2023073020230730FALSE
267A2023073020230730FALSE
278A2023073020230730FALSE
289A2023073020230730FALSE
Sheet1
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Another approach:
VBA Code:
Range("E2").FormulaArray = "=OR(IF(OR(RC[-3]={""A"",""I""}),R1C11,R1C9)<>CHOOSE({1,2},RC[-2],IF(RC[-1],RC[-1],RC[-2])))"
Range("E2").AutoFill Destination:=Range("E2:E" & Range("A" & Rows.Count).End(xlUp).Row)
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,320
Members
452,635
Latest member
laura12345

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