Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How do I create a formula

That returns different values for a cell that contains a yes, no or N/A.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default How do I create a formula

=IF(ISNA(A1),3,IF(A1="yes",1,IF(A1="no",2,"somethi ng else")))

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Trikester824" wrote in message
...
| That returns different values for a cell that contains a yes, no or N/A.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default How do I create a formula

=IF(ISNA(A1),"Result for N/A",IF(A1="yes","Result for
yes",IF(A1="no","Result for no","Result for other inputs")))
--
David Biddulph

"Trikester824" wrote in message
...
That returns different values for a cell that contains a yes, no or N/A.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default How do I create a formula

Possibly one way:

=LOOKUP(A1,{"N/A","no","yes"},{"Not Applicable","N","Y"})

--

"Trikester824" wrote in message
...
That returns different values for a cell that contains a yes, no or N/A.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,071
Default How do I create a formula

If you want to change the contents of a cell based on what is currently in
that same cell, you will need VBA programming. Post back if this is what
you want. HTH Otto
"Trikester824" wrote in message
...
That returns different values for a cell that contains a yes, no or N/A.


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
How to create a formula? Zygy New Users to Excel 3 January 5th 07 02:42 PM
i'd like to create a formula NED Excel Discussion (Misc queries) 1 August 9th 06 04:12 PM
How do I create a formula by percentage within a formula? Miss Texas Excel Worksheet Functions 1 March 27th 06 04:51 AM
How do a create a formula that if a1=rh than c1=13 sboerger Excel Worksheet Functions 1 December 1st 05 10:06 PM
need to create a formula to create a timesheet but haven't a clue AHurd Excel Discussion (Misc queries) 7 August 22nd 05 12:04 PM


All times are GMT +1. The time now is 10:07 PM.

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

About Us

"It's about Microsoft Excel"