?
Solved

Excel formula not pulling correctly

Posted on 2013-10-25
4
Medium Priority
?
214 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
[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
  • 2
4 Comments
 
LVL 18

Accepted Solution

by:
Steven Harris earned 1000 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 1000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

764 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