Solved

Copy Partial Data from Cell (omit 2 digits) and Convert to Upper/Lowercase

Posted on 2016-09-06
4
36 Views
Last Modified: 2016-09-25
Data Sample

This is in ONE CELL:    146301 ASPHALT WORKS: OP BY CONTR-PERM & DRVR

I only want the first 4 digits of the number above then I want the ALL CAPS to be Upper/Lowercase Formatting.

Result Desired in ONE CELL:  1463 Asphalt Works: Op by Contr-Perm & Drvr  (or something close,
0
Comment
Question by:Julie Lyman
  • 2
  • 2
4 Comments
 
LVL 35

Expert Comment

by:Terry Woods
ID: 41787111
This seems to work:
=LEFT(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))+3)&PROPER(MID(A1,MAX(FIND({0,1,2,3,4,5,6,7,8,9},"0123456789"&A1,1))+10,99999))

Open in new window


My result:
ONE CELL:    1463 Asphalt Works: Op By Contr-Perm & Drvr

Open in new window


Swap all the occurrences of A1 in the formula for the cell you're wanting to target.
0
 
LVL 47

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 500 total points (awarded by participants)
ID: 41787114
Try this formula...

    =LEFT(A1, 4) & PROPER(MID(A1, FIND(" ", A1), 999))
0
 
LVL 35

Expert Comment

by:Terry Woods
ID: 41787134
Haha I must be half asleep in my lunch hour... I included ONE CELL as part of the data... oops
0
 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 41814569
Only functioning response.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Time difference between dates without weekend 33 72
Distribute Values over date range 15 36
Web Query 1 19
simple excel formula 4 13
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

789 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