Transpose data from table to calendar

moaz_cma

New Member
Joined
May 7, 2024
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
Hi!

I have trying to transpose data from Leave Register (horizontal form) to Monthly Calendar (vertical form), if a certain condition is matched.

My Leave Register table looks like following:

1715094711726.png


... and I would like to transpose data into following calendar if Enroll is matched:

1715094954148.png


Many many thanks in advance!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
try this... lots of formulas. Assumes you have a sheet named Master, another sheet JohnDoe, you can use the same formula for the sheet JaneEyre. You can have a whole bunch of formulas in one cell, or you can have a lot of simple formulas in many different cells. i find it a lot easier to have one formula in one cell, find the answer, then ask the next question after i have that answer. hope this helps. cheers!
Cell A1 in Master Sheet EnrollNameLeaveFromTodaysconcatenate
1234John DoeAnnual4538345386=E2-D2=A2&D2
1234John DoeCasual4538745388=E3-D3=A3&D3
2345Jane EyreSick4539145391=E4-D4=A4&D4
1234John DoeSick4539645396=E5-D5=A5&D5
1234John DoeAnnual4540345405=E6-D6=A6&D6
1234John DoeAnnual4540745412=E7-D7=A7&D7

'Cell A1 = EnrollNameDateLeaveconcatenate=Master!D1=Master!E1daysLeaveDateFrom2To2From3To3=O1&P1BeginEndBegin2End2=T1&U1'Cell W1'Cell X1Cell Y1Cell z1Cell AA1Cell AB1'Cell AC1'Cell AD1 Final
1234John Doe45383=A2&C2=INDEX(Master!A:Z,MATCH(F2,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F2,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F2,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F2,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L2,G:G,0),3)=INDEX(A:Z,MATCH(L2,H:H,0),3)=IF(ISERROR(M2),"",M2)=IF(ISERROR(N2),"",N2)=VALUE(O2&P2)=INDEX(A:Z,MATCH(C2,G:G,0),3)=INDEX(A:Z,MATCH(C2,H:H,0),3)=IF(ISERROR(R2),"","Begin")=IF(ISERROR(S2),"","End")=T2&U2=IF(V2="Begin",C2,W1+1)=IF(V2="Begin",I2,X1-1)=IF(X2>=0,C2,"")=IF(V2="Begin",J2,"")=IF(V2="Begin",Z2,AA1)=IF(X2>=0,AA2,"")=IF(NOT(AB2=""),AB2,IF(I2=0,J2,""))=IF(ISERROR(AC2),"",AC2)
1234John Doe=C2+1=A3&C3=INDEX(Master!A:Z,MATCH(F3,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F3,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F3,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F3,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L3,G:G,0),3)=INDEX(A:Z,MATCH(L3,H:H,0),3)=IF(ISERROR(M3),"",M3)=IF(ISERROR(N3),"",N3)=VALUE(O3&P3)=INDEX(A:Z,MATCH(C3,G:G,0),3)=INDEX(A:Z,MATCH(C3,H:H,0),3)=IF(ISERROR(R3),"","Begin")=IF(ISERROR(S3),"","End")=T3&U3=IF(V3="Begin",C3,W2+1)=IF(V3="Begin",I3,X2-1)=IF(X3>=0,C3,"")=IF(V3="Begin",J3,"")=IF(V3="Begin",Z3,AA2)=IF(X3>=0,AA3,"")=IF(NOT(AB3=""),AB3,IF(I3=0,J3,""))=IF(ISERROR(AC3),"",AC3)
1234John Doe=C3+1=A4&C4=INDEX(Master!A:Z,MATCH(F4,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F4,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F4,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F4,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L4,G:G,0),3)=INDEX(A:Z,MATCH(L4,H:H,0),3)=IF(ISERROR(M4),"",M4)=IF(ISERROR(N4),"",N4)=VALUE(O4&P4)=INDEX(A:Z,MATCH(C4,G:G,0),3)=INDEX(A:Z,MATCH(C4,H:H,0),3)=IF(ISERROR(R4),"","Begin")=IF(ISERROR(S4),"","End")=T4&U4=IF(V4="Begin",C4,W3+1)=IF(V4="Begin",I4,X3-1)=IF(X4>=0,C4,"")=IF(V4="Begin",J4,"")=IF(V4="Begin",Z4,AA3)=IF(X4>=0,AA4,"")=IF(NOT(AB4=""),AB4,IF(I4=0,J4,""))=IF(ISERROR(AC4),"",AC4)
1234John Doe=C4+1=A5&C5=INDEX(Master!A:Z,MATCH(F5,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F5,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F5,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F5,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L5,G:G,0),3)=INDEX(A:Z,MATCH(L5,H:H,0),3)=IF(ISERROR(M5),"",M5)=IF(ISERROR(N5),"",N5)=VALUE(O5&P5)=INDEX(A:Z,MATCH(C5,G:G,0),3)=INDEX(A:Z,MATCH(C5,H:H,0),3)=IF(ISERROR(R5),"","Begin")=IF(ISERROR(S5),"","End")=T5&U5=IF(V5="Begin",C5,W4+1)=IF(V5="Begin",I5,X4-1)=IF(X5>=0,C5,"")=IF(V5="Begin",J5,"")=IF(V5="Begin",Z5,AA4)=IF(X5>=0,AA5,"")=IF(NOT(AB5=""),AB5,IF(I5=0,J5,""))=IF(ISERROR(AC5),"",AC5)
1234John Doe=C5+1=A6&C6=INDEX(Master!A:Z,MATCH(F6,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F6,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F6,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F6,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L6,G:G,0),3)=INDEX(A:Z,MATCH(L6,H:H,0),3)=IF(ISERROR(M6),"",M6)=IF(ISERROR(N6),"",N6)=VALUE(O6&P6)=INDEX(A:Z,MATCH(C6,G:G,0),3)=INDEX(A:Z,MATCH(C6,H:H,0),3)=IF(ISERROR(R6),"","Begin")=IF(ISERROR(S6),"","End")=T6&U6=IF(V6="Begin",C6,W5+1)=IF(V6="Begin",I6,X5-1)=IF(X6>=0,C6,"")=IF(V6="Begin",J6,"")=IF(V6="Begin",Z6,AA5)=IF(X6>=0,AA6,"")=IF(NOT(AB6=""),AB6,IF(I6=0,J6,""))=IF(ISERROR(AC6),"",AC6)
1234John Doe=C6+1=A7&C7=INDEX(Master!A:Z,MATCH(F7,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F7,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F7,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F7,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L7,G:G,0),3)=INDEX(A:Z,MATCH(L7,H:H,0),3)=IF(ISERROR(M7),"",M7)=IF(ISERROR(N7),"",N7)=VALUE(O7&P7)=INDEX(A:Z,MATCH(C7,G:G,0),3)=INDEX(A:Z,MATCH(C7,H:H,0),3)=IF(ISERROR(R7),"","Begin")=IF(ISERROR(S7),"","End")=T7&U7=IF(V7="Begin",C7,W6+1)=IF(V7="Begin",I7,X6-1)=IF(X7>=0,C7,"")=IF(V7="Begin",J7,"")=IF(V7="Begin",Z7,AA6)=IF(X7>=0,AA7,"")=IF(NOT(AB7=""),AB7,IF(I7=0,J7,""))=IF(ISERROR(AC7),"",AC7)
1234John Doe=C7+1=A8&C8=INDEX(Master!A:Z,MATCH(F8,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F8,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F8,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F8,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L8,G:G,0),3)=INDEX(A:Z,MATCH(L8,H:H,0),3)=IF(ISERROR(M8),"",M8)=IF(ISERROR(N8),"",N8)=VALUE(O8&P8)=INDEX(A:Z,MATCH(C8,G:G,0),3)=INDEX(A:Z,MATCH(C8,H:H,0),3)=IF(ISERROR(R8),"","Begin")=IF(ISERROR(S8),"","End")=T8&U8=IF(V8="Begin",C8,W7+1)=IF(V8="Begin",I8,X7-1)=IF(X8>=0,C8,"")=IF(V8="Begin",J8,"")=IF(V8="Begin",Z8,AA7)=IF(X8>=0,AA8,"")=IF(NOT(AB8=""),AB8,IF(I8=0,J8,""))=IF(ISERROR(AC8),"",AC8)
1234John Doe=C8+1=A9&C9=INDEX(Master!A:Z,MATCH(F9,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F9,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F9,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F9,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L9,G:G,0),3)=INDEX(A:Z,MATCH(L9,H:H,0),3)=IF(ISERROR(M9),"",M9)=IF(ISERROR(N9),"",N9)=VALUE(O9&P9)=INDEX(A:Z,MATCH(C9,G:G,0),3)=INDEX(A:Z,MATCH(C9,H:H,0),3)=IF(ISERROR(R9),"","Begin")=IF(ISERROR(S9),"","End")=T9&U9=IF(V9="Begin",C9,W8+1)=IF(V9="Begin",I9,X8-1)=IF(X9>=0,C9,"")=IF(V9="Begin",J9,"")=IF(V9="Begin",Z9,AA8)=IF(X9>=0,AA9,"")=IF(NOT(AB9=""),AB9,IF(I9=0,J9,""))=IF(ISERROR(AC9),"",AC9)
1234John Doe=C9+1=A10&C10=INDEX(Master!A:Z,MATCH(F10,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F10,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F10,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F10,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L10,G:G,0),3)=INDEX(A:Z,MATCH(L10,H:H,0),3)=IF(ISERROR(M10),"",M10)=IF(ISERROR(N10),"",N10)=VALUE(O10&P10)=INDEX(A:Z,MATCH(C10,G:G,0),3)=INDEX(A:Z,MATCH(C10,H:H,0),3)=IF(ISERROR(R10),"","Begin")=IF(ISERROR(S10),"","End")=T10&U10=IF(V10="Begin",C10,W9+1)=IF(V10="Begin",I10,X9-1)=IF(X10>=0,C10,"")=IF(V10="Begin",J10,"")=IF(V10="Begin",Z10,AA9)=IF(X10>=0,AA10,"")=IF(NOT(AB10=""),AB10,IF(I10=0,J10,""))=IF(ISERROR(AC10),"",AC10)
1234John Doe=C10+1=A11&C11=INDEX(Master!A:Z,MATCH(F11,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F11,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F11,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F11,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L11,G:G,0),3)=INDEX(A:Z,MATCH(L11,H:H,0),3)=IF(ISERROR(M11),"",M11)=IF(ISERROR(N11),"",N11)=VALUE(O11&P11)=INDEX(A:Z,MATCH(C11,G:G,0),3)=INDEX(A:Z,MATCH(C11,H:H,0),3)=IF(ISERROR(R11),"","Begin")=IF(ISERROR(S11),"","End")=T11&U11=IF(V11="Begin",C11,W10+1)=IF(V11="Begin",I11,X10-1)=IF(X11>=0,C11,"")=IF(V11="Begin",J11,"")=IF(V11="Begin",Z11,AA10)=IF(X11>=0,AA11,"")=IF(NOT(AB11=""),AB11,IF(I11=0,J11,""))=IF(ISERROR(AC11),"",AC11)
1234John Doe=C11+1=A12&C12=INDEX(Master!A:Z,MATCH(F12,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F12,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F12,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F12,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L12,G:G,0),3)=INDEX(A:Z,MATCH(L12,H:H,0),3)=IF(ISERROR(M12),"",M12)=IF(ISERROR(N12),"",N12)=VALUE(O12&P12)=INDEX(A:Z,MATCH(C12,G:G,0),3)=INDEX(A:Z,MATCH(C12,H:H,0),3)=IF(ISERROR(R12),"","Begin")=IF(ISERROR(S12),"","End")=T12&U12=IF(V12="Begin",C12,W11+1)=IF(V12="Begin",I12,X11-1)=IF(X12>=0,C12,"")=IF(V12="Begin",J12,"")=IF(V12="Begin",Z12,AA11)=IF(X12>=0,AA12,"")=IF(NOT(AB12=""),AB12,IF(I12=0,J12,""))=IF(ISERROR(AC12),"",AC12)
1234John Doe=C12+1=A13&C13=INDEX(Master!A:Z,MATCH(F13,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F13,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F13,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F13,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L13,G:G,0),3)=INDEX(A:Z,MATCH(L13,H:H,0),3)=IF(ISERROR(M13),"",M13)=IF(ISERROR(N13),"",N13)=VALUE(O13&P13)=INDEX(A:Z,MATCH(C13,G:G,0),3)=INDEX(A:Z,MATCH(C13,H:H,0),3)=IF(ISERROR(R13),"","Begin")=IF(ISERROR(S13),"","End")=T13&U13=IF(V13="Begin",C13,W12+1)=IF(V13="Begin",I13,X12-1)=IF(X13>=0,C13,"")=IF(V13="Begin",J13,"")=IF(V13="Begin",Z13,AA12)=IF(X13>=0,AA13,"")=IF(NOT(AB13=""),AB13,IF(I13=0,J13,""))=IF(ISERROR(AC13),"",AC13)
1234John Doe=C13+1=A14&C14=INDEX(Master!A:Z,MATCH(F14,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F14,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F14,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F14,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L14,G:G,0),3)=INDEX(A:Z,MATCH(L14,H:H,0),3)=IF(ISERROR(M14),"",M14)=IF(ISERROR(N14),"",N14)=VALUE(O14&P14)=INDEX(A:Z,MATCH(C14,G:G,0),3)=INDEX(A:Z,MATCH(C14,H:H,0),3)=IF(ISERROR(R14),"","Begin")=IF(ISERROR(S14),"","End")=T14&U14=IF(V14="Begin",C14,W13+1)=IF(V14="Begin",I14,X13-1)=IF(X14>=0,C14,"")=IF(V14="Begin",J14,"")=IF(V14="Begin",Z14,AA13)=IF(X14>=0,AA14,"")=IF(NOT(AB14=""),AB14,IF(I14=0,J14,""))=IF(ISERROR(AC14),"",AC14)
1234John Doe=C14+1=A15&C15=INDEX(Master!A:Z,MATCH(F15,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F15,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F15,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F15,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L15,G:G,0),3)=INDEX(A:Z,MATCH(L15,H:H,0),3)=IF(ISERROR(M15),"",M15)=IF(ISERROR(N15),"",N15)=VALUE(O15&P15)=INDEX(A:Z,MATCH(C15,G:G,0),3)=INDEX(A:Z,MATCH(C15,H:H,0),3)=IF(ISERROR(R15),"","Begin")=IF(ISERROR(S15),"","End")=T15&U15=IF(V15="Begin",C15,W14+1)=IF(V15="Begin",I15,X14-1)=IF(X15>=0,C15,"")=IF(V15="Begin",J15,"")=IF(V15="Begin",Z15,AA14)=IF(X15>=0,AA15,"")=IF(NOT(AB15=""),AB15,IF(I15=0,J15,""))=IF(ISERROR(AC15),"",AC15)
1234John Doe=C15+1=A16&C16=INDEX(Master!A:Z,MATCH(F16,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F16,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F16,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F16,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L16,G:G,0),3)=INDEX(A:Z,MATCH(L16,H:H,0),3)=IF(ISERROR(M16),"",M16)=IF(ISERROR(N16),"",N16)=VALUE(O16&P16)=INDEX(A:Z,MATCH(C16,G:G,0),3)=INDEX(A:Z,MATCH(C16,H:H,0),3)=IF(ISERROR(R16),"","Begin")=IF(ISERROR(S16),"","End")=T16&U16=IF(V16="Begin",C16,W15+1)=IF(V16="Begin",I16,X15-1)=IF(X16>=0,C16,"")=IF(V16="Begin",J16,"")=IF(V16="Begin",Z16,AA15)=IF(X16>=0,AA16,"")=IF(NOT(AB16=""),AB16,IF(I16=0,J16,""))=IF(ISERROR(AC16),"",AC16)
1234John Doe=C16+1=A17&C17=INDEX(Master!A:Z,MATCH(F17,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F17,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F17,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F17,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L17,G:G,0),3)=INDEX(A:Z,MATCH(L17,H:H,0),3)=IF(ISERROR(M17),"",M17)=IF(ISERROR(N17),"",N17)=VALUE(O17&P17)=INDEX(A:Z,MATCH(C17,G:G,0),3)=INDEX(A:Z,MATCH(C17,H:H,0),3)=IF(ISERROR(R17),"","Begin")=IF(ISERROR(S17),"","End")=T17&U17=IF(V17="Begin",C17,W16+1)=IF(V17="Begin",I17,X16-1)=IF(X17>=0,C17,"")=IF(V17="Begin",J17,"")=IF(V17="Begin",Z17,AA16)=IF(X17>=0,AA17,"")=IF(NOT(AB17=""),AB17,IF(I17=0,J17,""))=IF(ISERROR(AC17),"",AC17)
1234John Doe=C17+1=A18&C18=INDEX(Master!A:Z,MATCH(F18,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F18,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F18,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F18,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L18,G:G,0),3)=INDEX(A:Z,MATCH(L18,H:H,0),3)=IF(ISERROR(M18),"",M18)=IF(ISERROR(N18),"",N18)=VALUE(O18&P18)=INDEX(A:Z,MATCH(C18,G:G,0),3)=INDEX(A:Z,MATCH(C18,H:H,0),3)=IF(ISERROR(R18),"","Begin")=IF(ISERROR(S18),"","End")=T18&U18=IF(V18="Begin",C18,W17+1)=IF(V18="Begin",I18,X17-1)=IF(X18>=0,C18,"")=IF(V18="Begin",J18,"")=IF(V18="Begin",Z18,AA17)=IF(X18>=0,AA18,"")=IF(NOT(AB18=""),AB18,IF(I18=0,J18,""))=IF(ISERROR(AC18),"",AC18)
1234John Doe=C18+1=A19&C19=INDEX(Master!A:Z,MATCH(F19,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F19,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F19,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F19,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L19,G:G,0),3)=INDEX(A:Z,MATCH(L19,H:H,0),3)=IF(ISERROR(M19),"",M19)=IF(ISERROR(N19),"",N19)=VALUE(O19&P19)=INDEX(A:Z,MATCH(C19,G:G,0),3)=INDEX(A:Z,MATCH(C19,H:H,0),3)=IF(ISERROR(R19),"","Begin")=IF(ISERROR(S19),"","End")=T19&U19=IF(V19="Begin",C19,W18+1)=IF(V19="Begin",I19,X18-1)=IF(X19>=0,C19,"")=IF(V19="Begin",J19,"")=IF(V19="Begin",Z19,AA18)=IF(X19>=0,AA19,"")=IF(NOT(AB19=""),AB19,IF(I19=0,J19,""))=IF(ISERROR(AC19),"",AC19)
1234John Doe=C19+1=A20&C20=INDEX(Master!A:Z,MATCH(F20,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F20,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F20,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F20,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L20,G:G,0),3)=INDEX(A:Z,MATCH(L20,H:H,0),3)=IF(ISERROR(M20),"",M20)=IF(ISERROR(N20),"",N20)=VALUE(O20&P20)=INDEX(A:Z,MATCH(C20,G:G,0),3)=INDEX(A:Z,MATCH(C20,H:H,0),3)=IF(ISERROR(R20),"","Begin")=IF(ISERROR(S20),"","End")=T20&U20=IF(V20="Begin",C20,W19+1)=IF(V20="Begin",I20,X19-1)=IF(X20>=0,C20,"")=IF(V20="Begin",J20,"")=IF(V20="Begin",Z20,AA19)=IF(X20>=0,AA20,"")=IF(NOT(AB20=""),AB20,IF(I20=0,J20,""))=IF(ISERROR(AC20),"",AC20)
1234John Doe=C20+1=A21&C21=INDEX(Master!A:Z,MATCH(F21,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F21,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F21,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F21,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L21,G:G,0),3)=INDEX(A:Z,MATCH(L21,H:H,0),3)=IF(ISERROR(M21),"",M21)=IF(ISERROR(N21),"",N21)=VALUE(O21&P21)=INDEX(A:Z,MATCH(C21,G:G,0),3)=INDEX(A:Z,MATCH(C21,H:H,0),3)=IF(ISERROR(R21),"","Begin")=IF(ISERROR(S21),"","End")=T21&U21=IF(V21="Begin",C21,W20+1)=IF(V21="Begin",I21,X20-1)=IF(X21>=0,C21,"")=IF(V21="Begin",J21,"")=IF(V21="Begin",Z21,AA20)=IF(X21>=0,AA21,"")=IF(NOT(AB21=""),AB21,IF(I21=0,J21,""))=IF(ISERROR(AC21),"",AC21)
1234John Doe=C21+1=A22&C22=INDEX(Master!A:Z,MATCH(F22,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F22,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F22,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F22,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L22,G:G,0),3)=INDEX(A:Z,MATCH(L22,H:H,0),3)=IF(ISERROR(M22),"",M22)=IF(ISERROR(N22),"",N22)=VALUE(O22&P22)=INDEX(A:Z,MATCH(C22,G:G,0),3)=INDEX(A:Z,MATCH(C22,H:H,0),3)=IF(ISERROR(R22),"","Begin")=IF(ISERROR(S22),"","End")=T22&U22=IF(V22="Begin",C22,W21+1)=IF(V22="Begin",I22,X21-1)=IF(X22>=0,C22,"")=IF(V22="Begin",J22,"")=IF(V22="Begin",Z22,AA21)=IF(X22>=0,AA22,"")=IF(NOT(AB22=""),AB22,IF(I22=0,J22,""))=IF(ISERROR(AC22),"",AC22)
1234John Doe=C22+1=A23&C23=INDEX(Master!A:Z,MATCH(F23,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F23,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F23,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F23,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L23,G:G,0),3)=INDEX(A:Z,MATCH(L23,H:H,0),3)=IF(ISERROR(M23),"",M23)=IF(ISERROR(N23),"",N23)=VALUE(O23&P23)=INDEX(A:Z,MATCH(C23,G:G,0),3)=INDEX(A:Z,MATCH(C23,H:H,0),3)=IF(ISERROR(R23),"","Begin")=IF(ISERROR(S23),"","End")=T23&U23=IF(V23="Begin",C23,W22+1)=IF(V23="Begin",I23,X22-1)=IF(X23>=0,C23,"")=IF(V23="Begin",J23,"")=IF(V23="Begin",Z23,AA22)=IF(X23>=0,AA23,"")=IF(NOT(AB23=""),AB23,IF(I23=0,J23,""))=IF(ISERROR(AC23),"",AC23)
1234John Doe=C23+1=A24&C24=INDEX(Master!A:Z,MATCH(F24,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F24,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F24,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F24,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L24,G:G,0),3)=INDEX(A:Z,MATCH(L24,H:H,0),3)=IF(ISERROR(M24),"",M24)=IF(ISERROR(N24),"",N24)=VALUE(O24&P24)=INDEX(A:Z,MATCH(C24,G:G,0),3)=INDEX(A:Z,MATCH(C24,H:H,0),3)=IF(ISERROR(R24),"","Begin")=IF(ISERROR(S24),"","End")=T24&U24=IF(V24="Begin",C24,W23+1)=IF(V24="Begin",I24,X23-1)=IF(X24>=0,C24,"")=IF(V24="Begin",J24,"")=IF(V24="Begin",Z24,AA23)=IF(X24>=0,AA24,"")=IF(NOT(AB24=""),AB24,IF(I24=0,J24,""))=IF(ISERROR(AC24),"",AC24)
1234John Doe=C24+1=A25&C25=INDEX(Master!A:Z,MATCH(F25,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F25,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F25,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F25,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L25,G:G,0),3)=INDEX(A:Z,MATCH(L25,H:H,0),3)=IF(ISERROR(M25),"",M25)=IF(ISERROR(N25),"",N25)=VALUE(O25&P25)=INDEX(A:Z,MATCH(C25,G:G,0),3)=INDEX(A:Z,MATCH(C25,H:H,0),3)=IF(ISERROR(R25),"","Begin")=IF(ISERROR(S25),"","End")=T25&U25=IF(V25="Begin",C25,W24+1)=IF(V25="Begin",I25,X24-1)=IF(X25>=0,C25,"")=IF(V25="Begin",J25,"")=IF(V25="Begin",Z25,AA24)=IF(X25>=0,AA25,"")=IF(NOT(AB25=""),AB25,IF(I25=0,J25,""))=IF(ISERROR(AC25),"",AC25)
1234John Doe=C25+1=A26&C26=INDEX(Master!A:Z,MATCH(F26,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F26,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F26,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F26,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L26,G:G,0),3)=INDEX(A:Z,MATCH(L26,H:H,0),3)=IF(ISERROR(M26),"",M26)=IF(ISERROR(N26),"",N26)=VALUE(O26&P26)=INDEX(A:Z,MATCH(C26,G:G,0),3)=INDEX(A:Z,MATCH(C26,H:H,0),3)=IF(ISERROR(R26),"","Begin")=IF(ISERROR(S26),"","End")=T26&U26=IF(V26="Begin",C26,W25+1)=IF(V26="Begin",I26,X25-1)=IF(X26>=0,C26,"")=IF(V26="Begin",J26,"")=IF(V26="Begin",Z26,AA25)=IF(X26>=0,AA26,"")=IF(NOT(AB26=""),AB26,IF(I26=0,J26,""))=IF(ISERROR(AC26),"",AC26)
1234John Doe=C26+1=A27&C27=INDEX(Master!A:Z,MATCH(F27,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F27,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F27,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F27,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L27,G:G,0),3)=INDEX(A:Z,MATCH(L27,H:H,0),3)=IF(ISERROR(M27),"",M27)=IF(ISERROR(N27),"",N27)=VALUE(O27&P27)=INDEX(A:Z,MATCH(C27,G:G,0),3)=INDEX(A:Z,MATCH(C27,H:H,0),3)=IF(ISERROR(R27),"","Begin")=IF(ISERROR(S27),"","End")=T27&U27=IF(V27="Begin",C27,W26+1)=IF(V27="Begin",I27,X26-1)=IF(X27>=0,C27,"")=IF(V27="Begin",J27,"")=IF(V27="Begin",Z27,AA26)=IF(X27>=0,AA27,"")=IF(NOT(AB27=""),AB27,IF(I27=0,J27,""))=IF(ISERROR(AC27),"",AC27)
1234John Doe=C27+1=A28&C28=INDEX(Master!A:Z,MATCH(F28,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F28,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F28,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F28,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L28,G:G,0),3)=INDEX(A:Z,MATCH(L28,H:H,0),3)=IF(ISERROR(M28),"",M28)=IF(ISERROR(N28),"",N28)=VALUE(O28&P28)=INDEX(A:Z,MATCH(C28,G:G,0),3)=INDEX(A:Z,MATCH(C28,H:H,0),3)=IF(ISERROR(R28),"","Begin")=IF(ISERROR(S28),"","End")=T28&U28=IF(V28="Begin",C28,W27+1)=IF(V28="Begin",I28,X27-1)=IF(X28>=0,C28,"")=IF(V28="Begin",J28,"")=IF(V28="Begin",Z28,AA27)=IF(X28>=0,AA28,"")=IF(NOT(AB28=""),AB28,IF(I28=0,J28,""))=IF(ISERROR(AC28),"",AC28)
1234John Doe=C28+1=A29&C29=INDEX(Master!A:Z,MATCH(F29,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F29,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F29,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F29,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L29,G:G,0),3)=INDEX(A:Z,MATCH(L29,H:H,0),3)=IF(ISERROR(M29),"",M29)=IF(ISERROR(N29),"",N29)=VALUE(O29&P29)=INDEX(A:Z,MATCH(C29,G:G,0),3)=INDEX(A:Z,MATCH(C29,H:H,0),3)=IF(ISERROR(R29),"","Begin")=IF(ISERROR(S29),"","End")=T29&U29=IF(V29="Begin",C29,W28+1)=IF(V29="Begin",I29,X28-1)=IF(X29>=0,C29,"")=IF(V29="Begin",J29,"")=IF(V29="Begin",Z29,AA28)=IF(X29>=0,AA29,"")=IF(NOT(AB29=""),AB29,IF(I29=0,J29,""))=IF(ISERROR(AC29),"",AC29)
1234John Doe=C29+1=A30&C30=INDEX(Master!A:Z,MATCH(F30,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F30,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F30,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F30,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L30,G:G,0),3)=INDEX(A:Z,MATCH(L30,H:H,0),3)=IF(ISERROR(M30),"",M30)=IF(ISERROR(N30),"",N30)=VALUE(O30&P30)=INDEX(A:Z,MATCH(C30,G:G,0),3)=INDEX(A:Z,MATCH(C30,H:H,0),3)=IF(ISERROR(R30),"","Begin")=IF(ISERROR(S30),"","End")=T30&U30=IF(V30="Begin",C30,W29+1)=IF(V30="Begin",I30,X29-1)=IF(X30>=0,C30,"")=IF(V30="Begin",J30,"")=IF(V30="Begin",Z30,AA29)=IF(X30>=0,AA30,"")=IF(NOT(AB30=""),AB30,IF(I30=0,J30,""))=IF(ISERROR(AC30),"",AC30)
1234John Doe=C30+1=A31&C31=INDEX(Master!A:Z,MATCH(F31,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F31,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F31,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F31,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L31,G:G,0),3)=INDEX(A:Z,MATCH(L31,H:H,0),3)=IF(ISERROR(M31),"",M31)=IF(ISERROR(N31),"",N31)=VALUE(O31&P31)=INDEX(A:Z,MATCH(C31,G:G,0),3)=INDEX(A:Z,MATCH(C31,H:H,0),3)=IF(ISERROR(R31),"","Begin")=IF(ISERROR(S31),"","End")=T31&U31=IF(V31="Begin",C31,W30+1)=IF(V31="Begin",I31,X30-1)=IF(X31>=0,C31,"")=IF(V31="Begin",J31,"")=IF(V31="Begin",Z31,AA30)=IF(X31>=0,AA31,"")=IF(NOT(AB31=""),AB31,IF(I31=0,J31,""))=IF(ISERROR(AC31),"",AC31)
1234John Doe=C31+1=A32&C32=INDEX(Master!A:Z,MATCH(F32,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F32,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F32,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F32,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L32,G:G,0),3)=INDEX(A:Z,MATCH(L32,H:H,0),3)=IF(ISERROR(M32),"",M32)=IF(ISERROR(N32),"",N32)=VALUE(O32&P32)=INDEX(A:Z,MATCH(C32,G:G,0),3)=INDEX(A:Z,MATCH(C32,H:H,0),3)=IF(ISERROR(R32),"","Begin")=IF(ISERROR(S32),"","End")=T32&U32=IF(V32="Begin",C32,W31+1)=IF(V32="Begin",I32,X31-1)=IF(X32>=0,C32,"")=IF(V32="Begin",J32,"")=IF(V32="Begin",Z32,AA31)=IF(X32>=0,AA32,"")=IF(NOT(AB32=""),AB32,IF(I32=0,J32,""))=IF(ISERROR(AC32),"",AC32)
1234John Doe=C32+1=A33&C33=INDEX(Master!A:Z,MATCH(F33,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F33,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F33,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F33,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L33,G:G,0),3)=INDEX(A:Z,MATCH(L33,H:H,0),3)=IF(ISERROR(M33),"",M33)=IF(ISERROR(N33),"",N33)=VALUE(O33&P33)=INDEX(A:Z,MATCH(C33,G:G,0),3)=INDEX(A:Z,MATCH(C33,H:H,0),3)=IF(ISERROR(R33),"","Begin")=IF(ISERROR(S33),"","End")=T33&U33=IF(V33="Begin",C33,W32+1)=IF(V33="Begin",I33,X32-1)=IF(X33>=0,C33,"")=IF(V33="Begin",J33,"")=IF(V33="Begin",Z33,AA32)=IF(X33>=0,AA33,"")=IF(NOT(AB33=""),AB33,IF(I33=0,J33,""))=IF(ISERROR(AC33),"",AC33)
1234John Doe=C33+1=A34&C34=INDEX(Master!A:Z,MATCH(F34,Master!G:G,0),4)=INDEX(Master!A:Z,MATCH(F34,Master!G:G,0),5)=INDEX(Master!A:Z,MATCH(F34,Master!G:G,0),6)=INDEX(Master!A:Z,MATCH(F34,Master!G:G,0),3)45383=INDEX(A:Z,MATCH(L34,G:G,0),3)=INDEX(A:Z,MATCH(L34,H:H,0),3)=IF(ISERROR(M34),"",M34)=IF(ISERROR(N34),"",N34)=VALUE(O34&P34)=INDEX(A:Z,MATCH(C34,G:G,0),3)=INDEX(A:Z,MATCH(C34,H:H,0),3)=IF(ISERROR(R34),"","Begin")=IF(ISERROR(S34),"","End")=T34&U34=IF(V34="Begin",C34,W33+1)=IF(V34="Begin",I34,X33-1)=IF(X34>=0,C34,"")=IF(V34="Begin",J34,"")=IF(V34="Begin",Z34,AA33)=IF(X34>=0,AA34,"")=IF(NOT(AB34=""),AB34,IF(I34=0,J34,""))=IF(ISERROR(AC34),"",AC34)
 

Attachments

  • JohnDoe_sheet.PNG
    JohnDoe_sheet.PNG
    158.6 KB · Views: 5
  • master_sheet.PNG
    master_sheet.PNG
    67.2 KB · Views: 5
Upvote 0

Forum statistics

Threads
1,223,881
Messages
6,175,159
Members
452,615
Latest member
bogeys2birdies

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