Solved

How do I make a cell a text value based on whether another cell is negative or positive number in MS Excel

Posted on 2011-03-09
6
153 Views
Last Modified: 2012-05-11
Hello,
I have a spreadsheet with a column (a2) with a variety of - and + values...I want to make column (b2) a text value of either "follow" for a -ve value or "lead" if a +ve value.

Thanks for your assistance.
Groovymonkey
0
Comment
Question by:groovymonkey
  • 2
  • 2
  • 2
6 Comments
 
LVL 4

Expert Comment

by:knarf75
ID: 35083106
IIF (a2>0,"lead","follow")
0
 
LVL 4

Accepted Solution

by:
knarf75 earned 350 total points
ID: 35083110
paste this in b2 exactly so:
=IIF (a2>0,"lead","follow")
0
 

Author Comment

by:groovymonkey
ID: 35083224
Actually it is my F2 column that I am referencing in the actual sheet...I tried

=IIF (F2>0,"lead","follow")

and I am gettnig an error

this works though.,...
=IF(F2>0,"Follow","Lead")

thanks for the help
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 19

Assisted Solution

by:MINDSUPERB
MINDSUPERB earned 150 total points
ID: 35083433

Access uses IIF function and Excel uses the IF.

How about if F2 is blank or 0? What would be in B2?

Sincerely,
Ed
0
 
LVL 19

Expert Comment

by:MINDSUPERB
ID: 35083502
Groovymonkey,

You can modify the formula as shown below to leave the cell blank if F2 is Blank or 0.

=IF(OR(F2="",F2=0),"",IF(F2>0,"Follow","Lead"))


Ed
0
 

Author Closing Comment

by:groovymonkey
ID: 35117745
Solution was slightly off...initially but we got there with help from another member (slight syntax issue for excel)
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now