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
159 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
[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
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
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 …
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

630 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