I need to create a formula where a cell will show me a value based on the values in two preceding cell. I have been looking throughout this forum including archives and could not find anything similar to this. I am currently working on a model and the below formula would address most of my formulas needed to complete my model.
I would appreciate any help I can get in creating a formula that would help me achieve the below intent.
i.e.
- if cell A1 has a text value of L and cell B1 has a value containing text HPR from data range D1:D10 (whole value would actually be HPR01) then it will show a value of 30 in C1
- if cell A1 has a text value of L and cell B1 has a value containing text MPR from data range D1:D10 (whole value would actually be MPR01) then it will show a value of 15 in C1
- if cell A1 has a text value of L and cell B1 has a value containing text LPR from data range D1:D10 (whole value would actually be LPR01) then it will show a value of 5 in C1
- if cell A1 has a text value of L and cell B1 has a value containing text HPC from data range D1:D10 (whole value would actually be HPC01) then it will show a value of 30 in C1
- if cell A1 has a text value of L and cell B1 has a value containing text MPC from data range D1:D10 (whole value would actually be MPC01) then it will show a value of 15 in C1
- if cell A1 has a text value of L and cell B1 has a value containing text LPC from data range D1:D10 (whole value would actually be LPC01) then it will show a value of 5 in C1
- if cell A1 has a text value of S and cell B1 has a value containing text HPR or MPR or LPR or HPC or MPC or LPC from data range D1:D10 then it will show a value of 0 in C1
And vice versa for S
- if cell A1 has a text value of S and cell B1 has a value of HPR from data range E1:E10 (whole value would actually be HPR01 )then it will show a value of 30 etc…
- if cell A1 has a text value of L and cell B1 has a value containing text HPR or MPR or LPR or HPC or MPC or LPC from data range E1:E10 then it will show a value of 0 in C1
I would appreciate any help I can get in creating a formula that would help me achieve the below intent.
i.e.
- if cell A1 has a text value of L and cell B1 has a value containing text HPR from data range D1:D10 (whole value would actually be HPR01) then it will show a value of 30 in C1
- if cell A1 has a text value of L and cell B1 has a value containing text MPR from data range D1:D10 (whole value would actually be MPR01) then it will show a value of 15 in C1
- if cell A1 has a text value of L and cell B1 has a value containing text LPR from data range D1:D10 (whole value would actually be LPR01) then it will show a value of 5 in C1
- if cell A1 has a text value of L and cell B1 has a value containing text HPC from data range D1:D10 (whole value would actually be HPC01) then it will show a value of 30 in C1
- if cell A1 has a text value of L and cell B1 has a value containing text MPC from data range D1:D10 (whole value would actually be MPC01) then it will show a value of 15 in C1
- if cell A1 has a text value of L and cell B1 has a value containing text LPC from data range D1:D10 (whole value would actually be LPC01) then it will show a value of 5 in C1
- if cell A1 has a text value of S and cell B1 has a value containing text HPR or MPR or LPR or HPC or MPC or LPC from data range D1:D10 then it will show a value of 0 in C1
And vice versa for S
- if cell A1 has a text value of S and cell B1 has a value of HPR from data range E1:E10 (whole value would actually be HPR01 )then it will show a value of 30 etc…
- if cell A1 has a text value of L and cell B1 has a value containing text HPR or MPR or LPR or HPC or MPC or LPC from data range E1:E10 then it will show a value of 0 in C1