Hello,
thanks for looking into my query. I thought the file could also be downloaded as an excel file from dropbox.
I paste below the formula in C1, hope it helps:
IF(OR(IFERROR(MID(A1,FIND(G2,A1),2)=G2,0),IFERROR(MID(A1,FIND(G3,A1),2)=G3,0),IFERROR(MID(A1,FIND(G4,A1),2)=G4,0),IFERROR(MID(A1,FIND(F2,A1),2)=F2,0),IFERROR(MID(A1,FIND(F3,A1),2)=F3,0),IFERROR(MID(A1,FIND(F4,A1),2)=F4,0),IFERROR(MID(A1,FIND(H2,A1),2)=H2,0),IFERROR(MID(A1,FIND(H3,A1),2)=H3,0),IFERROR(MID(A1,FIND(H4,A1),2)=H4,0),IFERROR(MID(A1,FIND(I2,A1),2)=I2,0),IFERROR(MID(A1,FIND(I3,A1),2)=I3,0),IFERROR(MID(A1,FIND(I4,A1),2)=I4,0)),"Gross","Net")
It's difficult to see what the data is in order to obtain C1. What follows is your dropbox file as is:
| A | B | C | D | E | F | G | H | I | J |
---|
AS2 | M | Q | S | D | NET | | | | | |
M1 | Q1 | S1 | D1 | GROSS | | | | | | |
M2 | Q2 | S2 | D2 | GROSS | | | | | | |
M3 | Q3 | S3 | D3 | GROSS | | | | | | |
| | | | | | | | | | |
| | | | | | | | | | |
| | | | | | | | | | |
L1MH | L1QH | L1SH | L1DH | Net | | | | | | |
L1M1 | L1Q1 | L1S1 | L1D1 | Gross | | | | | | |
AM2 | AQ2 | AS2 | AD2 | Gross | | | | | | |
AM3 | AQ3 | AS3 | AD3 | Gross | | | | | | |
Not applicable | | | | | | | | | | |
<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #D9E1F2"]Gross[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]2[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]3[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]4[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]Expected results[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]8[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]9[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]10[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]11[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]12[/TD]
[TD="bgcolor: #FFC000"]M1H[/TD]
[TD="bgcolor: #FFC000"]Q3O[/TD]
[TD="bgcolor: #FFC000"]S1H[/TD]
[TD="bgcolor: #FFC000"]D2[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
</tbody>
Sheet1