Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Micayla Bergen
 
Posts: n/a
Default cell variables in IF formula

i have this formula (Thanks Biff)
=IF(J13="","",IF(J13=0,"Stock not rated",IF(OR(J13={1,2}),"Sell","")))
now i want to add in further variable - if J13 has "cmt" or "divs" then the
cell is blank, then if any of the above...
thank you
  #2   Report Post  
Jack Sheet
 
Posts: n/a
Default

=IF(OR(J13={"","cmt","divs"}),"",IF(J13=0,"Stock not
rated",IF(OR(J13={1,2}),"Sell","")))

--
Return email address is not as DEEP as it appears
"Micayla Bergen" wrote in message
...
i have this formula (Thanks Biff)
=IF(J13="","",IF(J13=0,"Stock not rated",IF(OR(J13={1,2}),"Sell","")))
now i want to add in further variable - if J13 has "cmt" or "divs" then
the
cell is blank, then if any of the above...
thank you



  #3   Report Post  
Biff
 
Posts: n/a
Default

Hi!

The formula will already take care of that.

As is, if J3 is ANY VALUE other than 0,1 or 2 then the formula cell will be
blank.

Biff

"Micayla Bergen" wrote in message
...
i have this formula (Thanks Biff)
=IF(J13="","",IF(J13=0,"Stock not rated",IF(OR(J13={1,2}),"Sell","")))
now i want to add in further variable - if J13 has "cmt" or "divs" then
the
cell is blank, then if any of the above...
thank you



  #4   Report Post  
Micayla Bergen
 
Posts: n/a
Default

woops, i meant if A13 is not cmt or divs, then the rest
i have this =IF(A13={"cmt","divs"},"",IF(J13="","",IF(J13=0,"S tock not
rated",IF(OR(J13={1,2}),"Sell","")))) but i dont think its right. because
only part of A13 will contain either cmt or divs, so would that be a search
if??

"Biff" wrote:

Hi!

The formula will already take care of that.

As is, if J3 is ANY VALUE other than 0,1 or 2 then the formula cell will be
blank.

Biff

"Micayla Bergen" wrote in message
...
i have this formula (Thanks Biff)
=IF(J13="","",IF(J13=0,"Stock not rated",IF(OR(J13={1,2}),"Sell","")))
now i want to add in further variable - if J13 has "cmt" or "divs" then
the
cell is blank, then if any of the above...
thank you




  #5   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Try this:

=IF(OR(ISNUMBER(SEARCH({"cmt","divs"},A13)),J3="") ,"",IF(J3=0,"Stock not
rated",IF(J3<3,"Sell","")))

Here's a posting tip for you:

Why not just ask one question and give all of the appropriate infomation all
at one time instead of posting multiple times and adding more and more
conditions onto to the original question? That would make finding all of the
replies easier and they'd all be in one thread!

Just a thought! <g

Biff

"Micayla Bergen" wrote in message
...
woops, i meant if A13 is not cmt or divs, then the rest
i have this =IF(A13={"cmt","divs"},"",IF(J13="","",IF(J13=0,"S tock not
rated",IF(OR(J13={1,2}),"Sell","")))) but i dont think its right. because
only part of A13 will contain either cmt or divs, so would that be a
search
if??

"Biff" wrote:

Hi!

The formula will already take care of that.

As is, if J3 is ANY VALUE other than 0,1 or 2 then the formula cell will
be
blank.

Biff

"Micayla Bergen" wrote in
message
...
i have this formula (Thanks Biff)
=IF(J13="","",IF(J13=0,"Stock not rated",IF(OR(J13={1,2}),"Sell","")))
now i want to add in further variable - if J13 has "cmt" or "divs" then
the
cell is blank, then if any of the above...
thank you








  #6   Report Post  
Micayla Bergen
 
Posts: n/a
Default

Thanks Biff. i do try to give all relevant info but its not until i implement
suggestions that i find further things that i have wrong or inadequate, but i
will keep that in mind
:o)

"Biff" wrote:

Hi!

Try this:

=IF(OR(ISNUMBER(SEARCH({"cmt","divs"},A13)),J3="") ,"",IF(J3=0,"Stock not
rated",IF(J3<3,"Sell","")))

Here's a posting tip for you:

Why not just ask one question and give all of the appropriate infomation all
at one time instead of posting multiple times and adding more and more
conditions onto to the original question? That would make finding all of the
replies easier and they'd all be in one thread!

Just a thought! <g

Biff

"Micayla Bergen" wrote in message
...
woops, i meant if A13 is not cmt or divs, then the rest
i have this =IF(A13={"cmt","divs"},"",IF(J13="","",IF(J13=0,"S tock not
rated",IF(OR(J13={1,2}),"Sell","")))) but i dont think its right. because
only part of A13 will contain either cmt or divs, so would that be a
search
if??

"Biff" wrote:

Hi!

The formula will already take care of that.

As is, if J3 is ANY VALUE other than 0,1 or 2 then the formula cell will
be
blank.

Biff

"Micayla Bergen" wrote in
message
...
i have this formula (Thanks Biff)
=IF(J13="","",IF(J13=0,"Stock not rated",IF(OR(J13={1,2}),"Sell","")))
now i want to add in further variable - if J13 has "cmt" or "divs" then
the
cell is blank, then if any of the above...
thank you






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a Formula in Cell X modify Cell Y? alMandragor Excel Discussion (Misc queries) 7 February 10th 05 09:51 PM
Cell shows formula and not the result of the formula. stumpy Excel Worksheet Functions 2 January 14th 05 04:44 PM
looking for a formula Amanda Excel Worksheet Functions 5 January 5th 05 07:37 AM
How do I do math on a cell name in formula? Mark Mulik Excel Worksheet Functions 3 November 23rd 04 03:43 PM
can i colour a cell on basis of results of a formula e.g clour bl. K Excel Worksheet Functions 3 November 4th 04 06:18 PM


All times are GMT +1. The time now is 01:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"