IF formula help, replicating data based on variables

justanotheru

New Member
Joined
Feb 8, 2017
Messages
3
1 abcde
2123
3aaadag
4abaeah
5acafai
6
7
8OPTIONSaaafah
9
10
11123
12RESULT

<tbody>
</tbody>

I'm trying to make a formula that will help me copy data based on a set of variables.

Three options are listed in cells B3, B4 and B5. If the data in cell C8, D8, or E8 is the same as either B3, B4 or B5, I want the data to be copied into cell C12. So because cell B3 is the same as C8, cell C12 would display the text aa. Similarly, if any of C8, D8, or E8 matches C3, C4 or C5, the corresponding data will be copied into D12.
If there is no match, the cell would be blank

The rough formula I have for cell C12 is something like



=IF(B3 or B4 or B5 = C8), [C8 = C12], =IF (B3 or B4 or B5 = e8, [D8 = c12], =IF B3 or B4 or B5 = E8, [f=E8 = C12]




I'm sure this formula is extremely error-ridden, but I'd be super grateful if anyone could help me tidy it up.


Thanks in advance.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
"Similarly, if any of C8, D8, or E8 matches C3, C4 or C5, the corresponding data will be copied into D12."

What happens if there's more than one match?
What should D12 show then?
 
Upvote 0
Ignore this, my solution wont work for all of them.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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