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
155 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
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
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…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

832 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