Complex Auto Copy Script

Mrfester

New Member
Joined
Jan 4, 2022
Messages
9
Office Version
  1. 2021
Platform
  1. Windows
So way beyond my very basic excel skills I would be really grateful of some help. Not even sure if this is possible but I have two sheets one called surveys and another called raid what I would like is some sort of script that means if yes is selected in column B on surveys then the cell next to it in column A copies into the next available cell from E3 onwards and if they select no it doesn't carry over. So in the example below B3 and B5 on surveys is yes so the contents of A3 and A5 Carry through to the RAID sheet cells E3 and E4 in an unbroken list. All of the data I potentially want to carry through will be contained in column A cells 3-50 of surveys and the yes no answer to trigger will be in cells B3 - B50 the data copied over will always go on the RAID sheet cell E3 - E50 in the next available cell with no gaps. I have no idea where to start Thank you
Shet1.png
sheet 2.png
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Since you appear to be using Excel 2021, you should have access to thew new FILTER function.
See: FILTER function - Microsoft Support

So place this formula in cell E3 on your RAID sheet:
Excel Formula:
=FILTER(Surveys!A3:A50,Surveys!B3:B50="Yes")
and it should return all the records you want.
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,975
Members
449,095
Latest member
Mr Hughes

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