Copy values from one workbook to another if condition is met

Lenna

Active Member
Joined
Jun 25, 2014
Messages
269
Hello,

I would like to copy two values (NC and PC) from a .csv files to Master workbook. I’m not sure if I need to open the .csv files to accomplish this?
To find the values in each .csv, “trimmed mean” needs to be located in column A of .csv file. The next row after “trimmed mean” that contains “NC” in col A is the negative control and I need to copy the value of the cell to the right to Mater workbook col A. The next row after “trimmed mean” that contains “PC” in col A is the positive control and I need to copy the value one cell to the right to Master workbook col B. Please suggest what is the best way to accomplish this task?

Thank you
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Please explain what you mean by 'NC' 'PC' "trimmed mean'? Would be helpful to give solution if a sample input and expected output is mentioned in the query.
 
Upvote 0
Please explain what you mean by 'NC' 'PC' "trimmed mean'? Would be helpful to give solution if a sample input and expected output is mentioned in the query.

Sorry, I'm refering to text in a cell in column a. Once i find a cell that contains "trimmed mean" in col a. I need to find the next occurrence of text "nc" and "pc" in col a and copy the corresponding values from column b to master workbook.
 
Upvote 0

Forum statistics

Threads
1,223,987
Messages
6,175,794
Members
452,670
Latest member
nogarth

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