Getting rid of an imaginary component

livvi_77

New Member
Joined
Aug 8, 2011
Messages
6
Hello,

I've imported some data from matlab into excel and much of the data contains an imaginary component which I do not want can anyone help me think of a way to get rid of all of these? There are about 2000 data pieces so I don't want to do it manually. Thanks for your help in advance.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
What do you mean by "Imaginary Component" ?

Leading/Trailing spaces, non-printing characters ?
 
Upvote 0
I have no idea what matlab is, and I have no idea what an "imaginary component" is. Can you shed some light on this for the laypeople amongst us ? :)
 
Upvote 0
Are you getting data like:

45 + 5i
33 - 2i
etc?

If there is a space before the operation, you could do

=left(A1,find(" ",A1,1)-1)*1

This is my best guess what you are talking about.

Jeff
 
Upvote 0
If it's imaginary then you don't have to worry about it :D

Can you be more specific on what your seeing?

It may be a simple matter of using Edit/Replace, but we need to understand the logic behind what exactly you're trying to remove.
 
Upvote 0
Hello,

I've imported some data from matlab into excel and much of the data contains an imaginary component which I do not want can anyone help me think of a way to get rid of all of these? There are about 2000 data pieces so I don't want to do it manually. Thanks for your help in advance.

try ctrl+F and select replace tab, in the find box put the character and in the replace box leave it blank or a space dependant on what you need.

HTH
 
Upvote 0

Forum statistics

Threads
1,215,357
Messages
6,124,482
Members
449,165
Latest member
ChipDude83

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