OS X - Apps and Games Discussion of applications and games available for Mac OS X.

Excel formula help - concatenation?


Post Reply New Thread Subscribe

 
Thread Tools
A-town

 
Member Since: Apr 06, 2011
Posts: 1
A-town is on a distinguished road

A-town is offline
Hi newbie here,

running excel:mac 2011 on MBP

I understand this is a bit of a long shot, but for a university project I have a massive list of data which has been compiled by two different researchers who have, somewhat annoyingly, coded their results in two different ways.

Is there a formula/tool in excel that allows you to do a mass edit of what is written in a cell?

I would settle for the actual words to search for; I think it's a string? or substring? and may have something to do with concatenation.

As an example, say half of the data is written in the format x-y-z, and the other half is x-z-y, is there a way to change one format to another without going through 16,000 cells retyping what's in them?!

Any help whatsoever would be massively appreciated

Examples of the actual two codes are shown below. Each different code format contains the same information just in a different order. I have colour coordinated the corresponding bits of data from each code which I would like to put into the same order. I hope that's not too cryptic and may make it easier to understand what the h*ll i'm talking about! I Would like the second format to become like the first.


7911_M_1-1-3_014_L

6083F101L1001

many thanks
QUOTE Thanks
shades

 
Member Since: May 20, 2004
Posts: 243
shades is a jewel in the roughshades is a jewel in the rough
Mac Specs: iMac 21" 8GB, MBP 15" 2.5 Penryn, 4 GB/180 GB

shades is offline
Howdy. It has been 3+ years since I worked extensively in Excel. But there are functions that allow you to determine order by counting either from the left or the right. While it could be done in one move, it would result in a difficult formula to set up. I can give you how to get rid of the unwanted characters.

ALWAYS work on a backup copy in case things turn bad. Assume your data is in Column C, beginning in row 2:

Select the column in which the data appears, then do a find and replace of the underscore (i.e. find it, then replace it with nothing).

Or you can use a formula in D2

=SUBSTITUTE(C2,"_","")

Copy this formula down the entire list by moving cursor to lower right corner of cell, and when it turns into a cross hairs, then double click and it will fill the entire length of the column.

Copy column D and paste back onto itself using "paste special values."

Then use the formula again on column D, and put this in E2

=SUBSTITUTE(D2,"-","")

As for the rest of how to do it, it would be best to visit the best Excel help site to for answers is Mr Excel. I used to participate regularly when using Excel everyday. But I don't even have Excel anymore.

Mellel 3, NWP 2, Scrivener 2.3.1, Tinderbox 5.11.2
LibreOffice 3.6, Accordance 10.0, Adobe CS4, DTP 2.4.3
OS X 10.8.2

Last edited by shades; 04-07-2011 at 12:51 AM.
QUOTE Thanks

Post Reply New Thread Subscribe


« Flash Player for OS X 10.1? | Splinter Cell Conviction mac requirements »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Can't open big Excel workbook on MacBook Air SergeiV OS X - Apps and Games 1 06-01-2010 04:01 AM
MAC excel 08 vs PC excel 07 gcookie OS X - Apps and Games 2 05-30-2010 11:32 PM
EXCEL Formula Help fearlessfreap24 OS X - Apps and Games 5 01-21-2010 06:16 AM
how to copy a row of excel to firefox chidambaram OS X - Apps and Games 0 06-04-2009 03:26 AM
Formula Bar for Excel rreiser Running Windows (or anything else) on your Mac 0 07-31-2008 05:38 PM

All times are GMT -4. The time now is 06:19 AM.

Powered by vBulletin
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?