Solved

Excel formula not pulling correctly

Posted on 2013-10-25
4
176 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

774 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