Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

MS Excel formatting

Posted on 2016-08-29
9
Medium Priority
?
46 Views
Last Modified: 2016-08-29
Hello,
The attached file has the city value/text on a separate line.  I wish to move that information into a separate column.
Tired an = , much to my surprise it is not working. Why?
Ideally would like to have the City only in a separate column.  I hate to ask to fix the file, yet I'm in a rush to find a contractor.
Please do tell me how you fixed it.  I need to sort it.
xcel-contractors.xlsx
0
Comment
Question by:chima
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
9 Comments
 
LVL 22

Expert Comment

by:CompProbSolv
ID: 41775030
Put the following in G3:
=left(B3,find(",",B3)-1)

and copy it to G5, G7, etc.
0
 
LVL 27

Accepted Solution

by:
ProfessorJimJam earned 2000 total points
ID: 41775087
put this formula anywhere for example in C2 and drag down  please see atached.

=IF(MOD(ROWS($B$2:B2),2),"",TRIM(LEFT(RIGHT(SUBSTITUTE(B2,",",REPT(" ",250)),500),250)))
xcel-contractors.xlsx
0
 

Author Comment

by:chima
ID: 41775096
CompProbSolv,  There is something wrong with the file or column because when I paste the formula in the cell, it does nothing, it just shows; =left(B3,find(",",B3)-1)   The format of the cells is "text"
0
Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 

Author Comment

by:chima
ID: 41775103
Prof, you read my question correctly.  thanks.
0
 
LVL 27

Expert Comment

by:ProfessorJimJam
ID: 41775107
you are welcome chima
0
 

Author Comment

by:chima
ID: 41775108
I would like to know what other change is needed, because I did paste this; =IF(MOD(ROWS($B$2:B2),2),"",TRIM(LEFT(RIGHT(SUBSTITUTE(B2,",",REPT(" ",250)),500),250))) and all I see is the formula.
I got the file, I have to go find a contractor.
0
 
LVL 27

Expert Comment

by:ProfessorJimJam
ID: 41775119
i did not understand your latest question?  did you see the file i uploaded?  didn't it work?
0
 
LVL 27

Expert Comment

by:ProfessorJimJam
ID: 41775155
put an equal sign then paste then after the equal sign IF(MOD(ROWS($B$2:B2),2),"",TRIM(LEFT(RIGHT(SUBSTITUTE(B2,",",REPT(" ",250)),500),250)))  then press enter and then drag the formula down.
0
 
LVL 22

Expert Comment

by:CompProbSolv
ID: 41775249
The formula works in my copy of your spreadsheet.  Any chance you've got something extra at the start of the cell, such as a quote character?
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question