If cell contains "name" then copy it with the contents of adjacent cell & paste in specified destinatio

moreanand

New Member
Joined
Jul 12, 2012
Messages
1
Greetings,

I have a spreadsheet where data in a cell contains carriage return at random places. I used split & char(10) to remove carriage return & bring the data as a unique text in separate cells of a row.

The contents of the orignial data with carriage return are such that, my first row may have Caller > Name > "Actual Name" > Caller > Phone > "actual Number" > Caller > Email > "Actual Email address" ........etc
The second row may have Caller > Name > "Actual Name" > Caller > Email > "Actual Email address" ........etc

Thus I have no guarrantee that there is a single column for phone number or email... etc

Now I have created a seperate sheet within the same workbook, in which I want to put one sigle column for name, one single columkn for phone, one single coumn for email for each record.

I intend to use if statement in such a manner that If any cellof a row in worksheet 1 contains the word "name" then copy the cell with adjacent cell in worksheet 2 specified cell; If If any cellof a row in worksheet 1 contains the word "no" then copy the cell with adjacent cell in worksheet 2 specified cell; If If any cellof a row in worksheet 1 contains the word "email" then copy the cell with adjacent cell in worksheet 2 specified cell.....etc

How to acheive this?

Regards
 
Last edited:

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
It will help if you upload some rows showing the present layout of the sheet as well as the sheet showing the expected result along with some sample data.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

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