IF statement is not working while comparing Text

Sun11

New Member
Joined
Nov 3, 2014
Messages
33
Hi, here is the problem. In following table at the place of "Angle" I fetch data using following formula.
Code:
=IF(A2 = "<<<","Ingress",LEFT(A2, SEARCH(" ",A2,1)))

DescriptionAngleAspect Dg
<<<Ingress
Trine VenusTrine

<tbody>
</tbody>

Now at "Aspect Dg" I tried using following formula with IF statement but its not working.
Code:
=IF(B2 ="Ingress","None",IF(B2 ="Trine", 120,IF(B2 ="Conjunction",0,IF(B2 ="Opposition",180,IF(B2 ="Square", 90, 60)))))

It always showing me 60, if "Angle" is not "Ingress"

Please help. Both all columns are in general format.

Regards
 
Last edited:

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
It is your 1st formula which is incorrect, it is returning a space at the end "Trine "

Try
=IF(A2 = "<<<","Ingress",LEFT(A2, SEARCH(" ",A2,1)-1))
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,852
Members
449,096
Latest member
Erald

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top