Solved

Excel formula not pulling correctly

Posted on 2013-10-25
4
184 Views
Last Modified: 2014-05-29
Good day everyone. I have a formula that compares a few cells together. The problem is that The comparison of one cell only compares until a space and does not pull anything after that.

Here is the formula:

=IF(IFERROR(Find(" ",B2),1)>1,LEFT(B2,FIND(" ",B2))&" "&C2, B2&" " &C2)


B2 cell contains first and middle name of user, C2 contains last name of user. With the formula above, it only pulls the value until the space. I want it to pull the whole cell.

Any ideas?
0
Comment
Question by:mig1980
  • 2
4 Comments
 
LVL 18

Accepted Solution

by:
Steven Harris earned 250 total points
ID: 39601893
Your formula is expressly set to find the space and only use the First Name.

Any reason why you can't use the following?

=CONCATENATE(B2, " ", C2)
0
 
LVL 3

Assisted Solution

by:netmaster1355
netmaster1355 earned 250 total points
ID: 39602568
I don't what you want as result. if you want to combine two cells you can use
=B2&" "&C2
or if you want to remove extra spaces between B2 and C2 you can use
=trim(B2)&" "&trim(C2)

seems your formula just combine two texts.
0
 
LVL 18

Expert Comment

by:Steven Harris
ID: 39602585
Can you provide an example of what the cells look like now, both B2 and C2, and then what you want as the output?
0
 

Author Closing Comment

by:mig1980
ID: 40098488
Old question. Answer no longer needed.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Outlook Free & Paid Tools
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

828 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