eagerexceler
New Member
- Joined
- Jan 10, 2017
- Messages
- 36
- Office Version
- 2016
- Platform
- Windows
Hello y'all,
I have a convoluted spreadsheet that has many rows of data that includes a common identifier in column A, a unique identifier in column D, and a unique date in column F. All the way over in column AY and AZ I need to conditionally populate the cell if the common identifier in column A is present on another row if the date in column F occurs within a set timeframe. I hope the attached data sheet helps clarify.
Basically, if cell A5 has a date within the range present in cell AY3 in any other row I need to populate cell AY5 with "Oth Present". Otherwise "Oth Not Present".
Thank you in advance!
I have a convoluted spreadsheet that has many rows of data that includes a common identifier in column A, a unique identifier in column D, and a unique date in column F. All the way over in column AY and AZ I need to conditionally populate the cell if the common identifier in column A is present on another row if the date in column F occurs within a set timeframe. I hope the attached data sheet helps clarify.
Basically, if cell A5 has a date within the range present in cell AY3 in any other row I need to populate cell AY5 with "Oth Present". Otherwise "Oth Not Present".
Thank you in advance!
Excel Nest If Date Within Another Date Example.xlsm | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | AD | AE | AF | AG | AH | AI | AJ | AK | AL | AM | AN | AO | AP | AQ | AR | AS | AT | AU | AV | AW | AX | AY | AZ | BA | |||
1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
3 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 30 | 3 | 30 | 3 | ||||||||||||||||||||||||||
4 | # | #-1 | Provider | #2 | # | Beg | End | Ind | Calc | Name | Tot1 | Tot2 | Act | Amt | Cat | SL | Re | CH | Ex | CY19 | Mar | Pro | Ad 1 | Ad 2 | Ad 3 | Ad 4 | Ad 5 | Ad 6 | Ad 7 | Ad 8 | Ad 9 | Ad 10 | Ad 11 | Ad 12 | Ad 13 | Ad 14 | Ad 15 | Ad 16 | Ad 17 | Ad 18 | Ad 19 | Ad 20 | Ad 21 | Ad 22 | Ad 23 | Ad 24 | Ad 25 | W/In 30? | W/In 3? | Ad Ex | Oth W/In 30? | Oth W/In 3? | Oth Exp | ||
5 | 1 | 1-1 | 1 | 1 | 1 | 1/1/19 | 1/4/19 | I | 32 | x | xx | xxx | xxxx | xxxxx | xxxxxx | (blank) | 0 | 0 | 18089.4 | 1 | b | a | 1/1/2019 | ||||||||||||||||||||||||||||||||
6 | 2 | 2-1 | 1 | 2 | 2 | 1/1/19 | 1/4/19 | I | 391 | x | xx | xxx | xxxx | xxxxx | xxxxxx | (blank) | 0 | 0 | 11151.2 | 1 | b | a | 1/1/2019 | ||||||||||||||||||||||||||||||||
7 | 3 | 3-1 | 1 | 3 | 3 | 1/3/19 | 2/15/19 | I | 1 | x | xx | xxx | xxxx | xxxxx | xxxxxx | (blank) | 0 | 0 | 351119 | 1 | b | a | 1/3/2019 | ||||||||||||||||||||||||||||||||
8 | 4 | 4-1 | 1 | 4 | 4 | 1/4/19 | 1/11/19 | I | 558 | x | xx | xxx | xxxx | xxxxx | xxxxxx | (blank) | 0 | 0 | 6125 | 1 | b | a | 1/4/2019 | ||||||||||||||||||||||||||||||||
9 | 5 | 5-1 | 1 | 7 | 5 | 1/11/19 | 1/25/19 | I | 668 | x | xx | xxx | xxxx | xxxxx | xxxxxx | (blank) | 0 | 0 | 13378.4 | 1 | b | a | 11/1/2019 | 12/1/2019 | 12/20/2019 | ||||||||||||||||||||||||||||||
10 | 5 | 5-2 | 1 | 5 | 5 | 5/31/19 | 6/7/19 | I | 653 | x | xx | xxx | xxxx | xxxxx | xxxxxx | (blank) | 0 | 0 | 37537.6 | 1 | b | a | 11/1/2019 | 5/31/2019 | 6/28/2019 | ||||||||||||||||||||||||||||||
11 | 5 | 5-3 | 1 | 6 | 5 | 12/20/19 | 12/23/19 | I | 280 | x | xx | xxx | xxxx | xxxxx | xxxxxx | (blank) | 0 | 0 | 11252.5 | 1 | b | a | 11/1/2019 | 5/31/2019 | 12/20/2019 | ||||||||||||||||||||||||||||||
12 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
13 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Sheet2 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
Z5:AU11,W5:Y8,W2:AU2 | W2 | =IFNA(IF($H2="I",VLOOKUP($A2&"-"&W$3,$B:$F,5,FALSE),""),"") |
X3:AU3 | X3 | =W3+1 |
A5:A11 | A5 | =E5 |
B5:B11 | B5 | =IF($H5="I",$E5&"-"&COUNTIFS($E$5:$E5,$E5,$H$5:$H5,"I"),"OP") |