felixstraube
Well-known Member
- Joined
- Nov 27, 2023
- Messages
- 897
- Office Version
- 365
- Platform
- Windows
- Web
Hi, first time user of the forum and the Xl2bb add-in. I wanted to reply to a question asked by another user an paste my bb code. Thing is I used some named ranges to make it more readable, but the named ranges are not listed at the of the code.
I'll paste my bb code here so you can see what I mean. The named ranges like "CurrentMonth", "HireDate", "TerminateDate", "LoaEndDate", "LoaStartDate" and "DaysInMonth" are not listed.
Can you tell me what im doing wrong? I made sure the "Named Ranges" was checked before copying the code.
Thanks in advance
I'll paste my bb code here so you can see what I mean. The named ranges like "CurrentMonth", "HireDate", "TerminateDate", "LoaEndDate", "LoaStartDate" and "DaysInMonth" are not listed.
Can you tell me what im doing wrong? I made sure the "Named Ranges" was checked before copying the code.
Thanks in advance
Libro1 | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | |||
4 | Hire date | Terminate date | LOA start date | LOA end date | Status | ene-24 | feb-24 | mar-24 | abr-24 | may-24 | jun-24 | jul-24 | ago-24 | sep-24 | oct-24 | nov-24 | dic-24 | ||
5 | 2022-08-08 | 2023-09-15 | 2024-09-14 | Active | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0,53333333 | 1 | 1 | 1 | |||
6 | 2022-08-08 | 2024-04-15 | Terminated | 1 | 1 | 1 | 0,5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||
7 | 2022-08-08 | 2023-09-15 | 2024-09-14 | LOA | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0,53333333 | 1 | 1 | 1 | |||
Hoja1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H5:S7 | H5 | =SUM(LET(days,SEQUENCE(31,,H$4,1),(MONTH(days)=CurrentMonth)*(days>=HireDate)*(days<=TerminateDate)*(NOT((days<=LoaEndDate)*(days>=LoaStartDate))))*1)/DaysInMonth |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
G5:G7 | List | =StatusList |