Selecting Part of Cell in Excel

If I have a cell "ABC-123"

and I want to create a formula to only return me the first 3 char i.e. "ABC" - how do I do that..

thanks much

What is a Cell in Excel?

In excel, each unit on the workbook is called a "cell." Example - the first block in excel is labled "A1" - this is a cell.

How to Select Part of a Cell

If attempting to keep first part of a cell value in excel, you can use the "left" function.

Equation Breakdown:

=LEFT(target cell, # of characters desired)
=MID(target cell,start character, # of characters desired)
=RIGHT(target cell, # of characters desired)

Looking to become an excel wizard?

Sign up for our financial modeling training course to learn all this and more.

Financial Modeling Training Course

20 Comments
 

Hi..

I am looking for a formula which can pick up a row according to the value which I entering in a cell. Please help me.

Thank you,

Jafar

 
Best Response

I know Excel like no one's business, but always forget these particular functions.

Check out this site:

http://www.ozgrid.com/Excel/TextFormulas.htm

I made this to figure out the column label (i.e. "A", "B", etc...)

=+LEFT(RIGHT(LEFT(ADDRESS(ROW(),COLUMN()), LEN(ADDRESS(ROW(),COLUMN()))-1),LEN(LEFT(ADDRESS(ROW(),COLUMN()), LEN(ADDRESS(ROW(),COLUMN()))-1))-FIND("$",LEFT(ADDRESS(ROW(),COLUMN()), LEN(ADDRESS(ROW(),COLUMN()))-1),1)),LEN(RIGHT(LEFT(ADDRESS(ROW(),COLUMN()), LEN(ADDRESS(ROW(),COLUMN()))-1),LEN(LEFT(ADDRESS(ROW(),COLUMN()), LEN(ADDRESS(ROW(),COLUMN()))-1))-FIND("$",LEFT(ADDRESS(ROW(),COLUMN()), LEN(ADDRESS(ROW(),COLUMN()))-1),1)))-1)

If anyone knows how to get the column in an easier way, let me know. I know you can do COLUMN and do a look-up, but that's retarded.

 

let's say you want column label to appear in row A (will only work from A-Z):

put in cell A1: +char(counta($A1:A1)+64). drag that across row 1 with automatic calc and iterations.

char(65)=A, char(66) = B, char(67)=C, etc

i actually just thought of a way to modify it such that it will work for AA, BJ, ED, etc (columns beyond Z). let me know if you're curious

 

thought of a really easy way..

=+MID(ADDRESS(ROW(),COLUMN()),2,IF(COLUMN()27,1,2))

the if statement is there so that when the column is less than 27 (columns A-Z), the mid function returns 1 character (so as not to include the $) and if not it returns two characters (because all other column labels require two characters (i.e. AA, BD, IF)

 

Not a formula, but this may work. Use the text to columns feature under the data drop down. Just chose the - or whatever other character separates the fields (including a space if you want). This will break up the fields and then you can just select whichever part of the data you want.

 

I have a long list of codes written in the following format: 20Co400PoHPS1.

Does anyone know how I can select the middle number in this text (i.e. 400) given that the number of characters to the left and right of it changes, and the length of the middle number ranges from 1-4 digits.

 

Say I needed to select part of a cell, and that particular part was a sum, say 63/54, how would you get Excel to work out the sum for you as well?

 

Hi..

I am looking for a formula which can pick up a row according to the value which I entering in a cell. Please help me.

Thank you,

Jafar

 

Hi... I'm looking count only one part of a cell with the format i.e. 1x4 - €105 pro nacht (2 Nächte) + €9 KfZ I have many different rows in the same column and I want to count only the "4" after "1x" because the entire example above is all in the same cell. Can you help me please? From what I read of the other comments, there isn't an exact example yet... Thanks!

 

Hi ctraltelite,

Thanks for the quick reply! What if the number 4 was just an example an that number can be anywhere from 1-5? The number changes and it represents number of people in a room and I'm trying to count a bunch of different cells with this format and grab the total from all...

i.e. Row 2: 1x4 - €105 pro nacht (2 Nächte) + €9 KfZ Row 4: 1x3 - €39,50 pro nacht (2 Nächte) + €9 KfZ Row 7: 1x2 - €102 pro nacht (7 Nächte)

So In Row 1 I want to have a cell that has (I'm assuming) your suggested formula that ends up equalling 9 (4+3+2). Does that makes sense? Or do I really need to separate into separate columns? It's sooo much work to do that and I'd like to avoid it if possible :)

Thanks!

Career Advancement Opportunities

June 2026 Investment Banking

  • Evercore 01 99.4%
  • Moelis & Company 01 98.8%
  • JPMorgan 01 98.2%
  • Guggenheim Partners 01 97.7%
  • Morgan Stanley 07 97.1%

Overall Employee Satisfaction

June 2026 Investment Banking

  • Moelis & Company No 99.4%
  • Morgan Stanley 01 98.8%
  • Evercore 01 98.2%
  • BMO Capital Markets 12 97.6%
  • Banco Santander 01 97.1%

Professional Growth Opportunities

June 2026 Investment Banking

  • Moelis & Company No 99.4%
  • Evercore No 98.8%
  • Morgan Stanley 05 98.2%
  • JPMorgan No 97.7%
  • BMO Capital Markets 12 97.1%

Total Avg Compensation

June 2026 Investment Banking

  • Vice President (14) $434
  • Associates (43) $259
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (22) $179
  • Intern/Summer Associate (13) $156
  • 1st Year Analyst (75) $151
  • Intern/Summer Analyst (66) $101
notes
16 IB Interviews Notes

“... there’s no excuse to not take advantage of the resources out there available to you. Best value for your $ are the...”

Leaderboard

1
redever's picture
redever
99.2
2
kanon's picture
kanon
99.0
3
BankonBanking's picture
BankonBanking
99.0
4
Secyh62's picture
Secyh62
99.0
5
DrApeman's picture
DrApeman
98.9
6
Betsy Massar's picture
Betsy Massar
98.9
7
GameTheory's picture
GameTheory
98.9
8
dosk17's picture
dosk17
98.9
9
CompBanker's picture
CompBanker
98.9
10
Jamoldo's picture
Jamoldo
98.8
success
From 10 rejections to 1 dream investment banking internship

“... I believe it was the single biggest reason why I ended up with an offer...”