Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Excel formula not pulling correctly

Posted on 2013-10-25
4
Medium Priority
?
222 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

597 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