Hello Excel wizards!
I'm wondering if anybody could help me write formula that based on table A1:G4 below will:
1. In cell C10, formula that will look for trade 8361655 in the table and if "NEW" under column POSTING_TYPE and "FXO-MTM_FULL-BUY" under column ACCOUNTING_RULE then lookup the corresponding DEBIT_ACCOUNT number which is 2718063
2. In cell D10, using same logic in no.1, formula that will place "D" since 2718063 s in DEBIT_ACCT column for that record.
3. In cell C11 and D11,similar formulas as no. 1 and 2 but the logic "FXO-MTM_FULL-SELL" in column ACCOUNTING_RULE.
Thank you very much for your help!
[TABLE="width: 589"]
<colgroup><col width="64" style="width: 48pt;"> <col width="81" style="width: 61pt; mso-width-source: userset; mso-width-alt: 2962;"> <col width="82" style="width: 62pt; mso-width-source: userset; mso-width-alt: 2998;"> <col width="104" style="width: 78pt; mso-width-source: userset; mso-width-alt: 3803;"> <col width="93" style="width: 70pt; mso-width-source: userset; mso-width-alt: 3401;"> <col width="142" style="width: 107pt; mso-width-source: userset; mso-width-alt: 5193;"> <col width="86" style="width: 65pt; mso-width-source: userset; mso-width-alt: 3145;"> <col width="130" style="width: 98pt; mso-width-source: userset; mso-width-alt: 4754;"> <tbody>[TR]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="width: 81, bgcolor: transparent"]A[/TD]
[TD="width: 82, bgcolor: transparent"]B[/TD]
[TD="width: 104, bgcolor: transparent"]C[/TD]
[TD="width: 93, bgcolor: transparent"]D[/TD]
[TD="width: 142, bgcolor: transparent"]E[/TD]
[TD="width: 86, bgcolor: transparent"]F[/TD]
[TD="width: 130, bgcolor: transparent"]G[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]1
[/TD]
[TD="width: 81, bgcolor: transparent"]DEBIT_ACCT[/TD]
[TD="width: 82, bgcolor: transparent"]CREDIT_ACCT[/TD]
[TD="width: 104, bgcolor: transparent"]POSTING_AMT[/TD]
[TD="width: 93, bgcolor: transparent"]ACCTG_UNIT[/TD]
[TD="width: 142, bgcolor: transparent"]POSTING_TYPE[/TD]
[TD="width: 86, bgcolor: transparent"]TRADE_ID[/TD]
[TD="width: 130, bgcolor: transparent"]ACCOUNTING_RULE[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2
[/TD]
[TD="width: 81, bgcolor: transparent, align: right"]7408094[/TD]
[TD="width: 82, bgcolor: transparent, align: right"]2718063[/TD]
[TD="width: 104, bgcolor: transparent, align: right"]92680.94[/TD]
[TD="width: 93, bgcolor: transparent, align: right"]2639[/TD]
[TD="width: 142, bgcolor: transparent"]REVERSAL[/TD]
[TD="width: 86, bgcolor: transparent, align: right"]8361655[/TD]
[TD="width: 130, bgcolor: transparent"]FXO-MTM_FULL-BUY[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]3[/TD]
[TD="width: 81, bgcolor: transparent, align: right"]2718063[/TD]
[TD="width: 82, bgcolor: transparent, align: right"]7408094[/TD]
[TD="width: 104, bgcolor: transparent, align: right"]56946.05[/TD]
[TD="width: 93, bgcolor: transparent, align: right"]2639[/TD]
[TD="width: 142, bgcolor: transparent"]NEW[/TD]
[TD="width: 86, bgcolor: transparent, align: right"]8361655[/TD]
[TD="width: 130, bgcolor: transparent"]FXO-MTM_FULL-BUY[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]4[/TD]
[TD="bgcolor: transparent, align: right"]7408095[/TD]
[TD="bgcolor: transparent, align: right"]4718077[/TD]
[TD="bgcolor: transparent, align: right"]65317.23[/TD]
[TD="width: 93, bgcolor: transparent, align: right"]2639[/TD]
[TD="width: 142, bgcolor: transparent"]NEW[/TD]
[TD="width: 86, bgcolor: transparent, align: right"]8361655[/TD]
[TD="width: 130, bgcolor: transparent"]FXO-MTM_FULL-SELL[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]5[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="width: 93, bgcolor: transparent"] [/TD]
[TD="width: 142, bgcolor: transparent"] [/TD]
[TD="width: 86, bgcolor: transparent"] [/TD]
[TD="width: 130, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]6[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]7[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]8[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]9[/TD]
[TD="bgcolor: transparent"]TradeID[/TD]
[TD="bgcolor: transparent"]GL Account[/TD]
[TD="bgcolor: transparent"]Debit/Credit Ind[/TD]
[TD="bgcolor: transparent"]Balance[/TD]
[TD="bgcolor: transparent"]Accounting Rule[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]10[/TD]
[TD="width: 81, bgcolor: transparent, align: right"]8361655[/TD]
[TD="width: 82, bgcolor: transparent, align: right"]2718063[/TD]
[TD="bgcolor: transparent"]D[/TD]
[TD="width: 93, bgcolor: transparent, align: right"]56946.05[/TD]
[TD="width: 142, bgcolor: transparent"]FXO-MTM_FULL-BUY[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]11[/TD]
[TD="width: 81, bgcolor: transparent, align: right"]8361655[/TD]
[TD="bgcolor: transparent, align: right"]7408094[/TD]
[TD="bgcolor: transparent"]C[/TD]
[TD="width: 93, bgcolor: transparent, align: right"]56946.05[/TD]
[TD="width: 142, bgcolor: transparent"]FXO-MTM_FULL-BUY[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]
I'm wondering if anybody could help me write formula that based on table A1:G4 below will:
1. In cell C10, formula that will look for trade 8361655 in the table and if "NEW" under column POSTING_TYPE and "FXO-MTM_FULL-BUY" under column ACCOUNTING_RULE then lookup the corresponding DEBIT_ACCOUNT number which is 2718063
2. In cell D10, using same logic in no.1, formula that will place "D" since 2718063 s in DEBIT_ACCT column for that record.
3. In cell C11 and D11,similar formulas as no. 1 and 2 but the logic "FXO-MTM_FULL-SELL" in column ACCOUNTING_RULE.
Thank you very much for your help!
[TABLE="width: 589"]
<colgroup><col width="64" style="width: 48pt;"> <col width="81" style="width: 61pt; mso-width-source: userset; mso-width-alt: 2962;"> <col width="82" style="width: 62pt; mso-width-source: userset; mso-width-alt: 2998;"> <col width="104" style="width: 78pt; mso-width-source: userset; mso-width-alt: 3803;"> <col width="93" style="width: 70pt; mso-width-source: userset; mso-width-alt: 3401;"> <col width="142" style="width: 107pt; mso-width-source: userset; mso-width-alt: 5193;"> <col width="86" style="width: 65pt; mso-width-source: userset; mso-width-alt: 3145;"> <col width="130" style="width: 98pt; mso-width-source: userset; mso-width-alt: 4754;"> <tbody>[TR]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="width: 81, bgcolor: transparent"]A[/TD]
[TD="width: 82, bgcolor: transparent"]B[/TD]
[TD="width: 104, bgcolor: transparent"]C[/TD]
[TD="width: 93, bgcolor: transparent"]D[/TD]
[TD="width: 142, bgcolor: transparent"]E[/TD]
[TD="width: 86, bgcolor: transparent"]F[/TD]
[TD="width: 130, bgcolor: transparent"]G[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]1
[/TD]
[TD="width: 81, bgcolor: transparent"]DEBIT_ACCT[/TD]
[TD="width: 82, bgcolor: transparent"]CREDIT_ACCT[/TD]
[TD="width: 104, bgcolor: transparent"]POSTING_AMT[/TD]
[TD="width: 93, bgcolor: transparent"]ACCTG_UNIT[/TD]
[TD="width: 142, bgcolor: transparent"]POSTING_TYPE[/TD]
[TD="width: 86, bgcolor: transparent"]TRADE_ID[/TD]
[TD="width: 130, bgcolor: transparent"]ACCOUNTING_RULE[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2
[/TD]
[TD="width: 81, bgcolor: transparent, align: right"]7408094[/TD]
[TD="width: 82, bgcolor: transparent, align: right"]2718063[/TD]
[TD="width: 104, bgcolor: transparent, align: right"]92680.94[/TD]
[TD="width: 93, bgcolor: transparent, align: right"]2639[/TD]
[TD="width: 142, bgcolor: transparent"]REVERSAL[/TD]
[TD="width: 86, bgcolor: transparent, align: right"]8361655[/TD]
[TD="width: 130, bgcolor: transparent"]FXO-MTM_FULL-BUY[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]3[/TD]
[TD="width: 81, bgcolor: transparent, align: right"]2718063[/TD]
[TD="width: 82, bgcolor: transparent, align: right"]7408094[/TD]
[TD="width: 104, bgcolor: transparent, align: right"]56946.05[/TD]
[TD="width: 93, bgcolor: transparent, align: right"]2639[/TD]
[TD="width: 142, bgcolor: transparent"]NEW[/TD]
[TD="width: 86, bgcolor: transparent, align: right"]8361655[/TD]
[TD="width: 130, bgcolor: transparent"]FXO-MTM_FULL-BUY[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]4[/TD]
[TD="bgcolor: transparent, align: right"]7408095[/TD]
[TD="bgcolor: transparent, align: right"]4718077[/TD]
[TD="bgcolor: transparent, align: right"]65317.23[/TD]
[TD="width: 93, bgcolor: transparent, align: right"]2639[/TD]
[TD="width: 142, bgcolor: transparent"]NEW[/TD]
[TD="width: 86, bgcolor: transparent, align: right"]8361655[/TD]
[TD="width: 130, bgcolor: transparent"]FXO-MTM_FULL-SELL[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]5[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="width: 93, bgcolor: transparent"] [/TD]
[TD="width: 142, bgcolor: transparent"] [/TD]
[TD="width: 86, bgcolor: transparent"] [/TD]
[TD="width: 130, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]6[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]7[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]8[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]9[/TD]
[TD="bgcolor: transparent"]TradeID[/TD]
[TD="bgcolor: transparent"]GL Account[/TD]
[TD="bgcolor: transparent"]Debit/Credit Ind[/TD]
[TD="bgcolor: transparent"]Balance[/TD]
[TD="bgcolor: transparent"]Accounting Rule[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]10[/TD]
[TD="width: 81, bgcolor: transparent, align: right"]8361655[/TD]
[TD="width: 82, bgcolor: transparent, align: right"]2718063[/TD]
[TD="bgcolor: transparent"]D[/TD]
[TD="width: 93, bgcolor: transparent, align: right"]56946.05[/TD]
[TD="width: 142, bgcolor: transparent"]FXO-MTM_FULL-BUY[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]11[/TD]
[TD="width: 81, bgcolor: transparent, align: right"]8361655[/TD]
[TD="bgcolor: transparent, align: right"]7408094[/TD]
[TD="bgcolor: transparent"]C[/TD]
[TD="width: 93, bgcolor: transparent, align: right"]56946.05[/TD]
[TD="width: 142, bgcolor: transparent"]FXO-MTM_FULL-BUY[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]