Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Karen
 
Posts: n/a
Default How do I set a formula if A1 is "a" then C1 is 3?

I'm wanting to set a formula so that if cell A1 is "a" then C1 would be 3 and
if A1 is "b" then C1 would be 5.
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Search33
 
Posts: n/a
Default How do I set a formula if A1 is "a" then C1 is 3?

=IF(A1="a",3,IF(A1="b",5,"Whatever you want if neither are true"))

"Karen" wrote:

I'm wanting to set a formula so that if cell A1 is "a" then C1 would be 3 and
if A1 is "b" then C1 would be 5.

  #3   Report Post  
Posted to microsoft.public.excel.newusers
JE McGimpsey
 
Posts: n/a
Default How do I set a formula if A1 is "a" then C1 is 3?

Put this in C1:

=IF(A1="a",3,IF(A1="b","5",""))

In article ,
"Karen" wrote:

I'm wanting to set a formula so that if cell A1 is "a" then C1 would be 3 and
if A1 is "b" then C1 would be 5.

  #4   Report Post  
Posted to microsoft.public.excel.newusers
BenjieLop
 
Posts: n/a
Default How do I set a formula if A1 is "a" then C1 is 3?


Karen Wrote:
I'm wanting to set a formula so that if cell A1 is "a" then C1 would be
3 and
if A1 is "b" then C1 would be 5.


Enter this formula in Cell C1:

=IF(A1=\"A\",3,IF(A1=\"B\",5,\"\"))

NOTE: for any other entry in Cell A1, Cell C1 will be blank.

Regards.


--
BenjieLop


------------------------------------------------------------------------
BenjieLop's Profile: http://www.excelforum.com/member.php...o&userid=11019
View this thread: http://www.excelforum.com/showthread...hreadid=492188

  #5   Report Post  
Posted to microsoft.public.excel.newusers
Karen
 
Posts: n/a
Default How do I set a formula if A1 is "a" then C1 is 3?

Thank you so much!!

"Search33" wrote:

=IF(A1="a",3,IF(A1="b",5,"Whatever you want if neither are true"))

"Karen" wrote:

I'm wanting to set a formula so that if cell A1 is "a" then C1 would be 3 and
if A1 is "b" then C1 would be 5.



  #6   Report Post  
Posted to microsoft.public.excel.newusers
RagDyeR
 
Posts: n/a
Default How do I set a formula if A1 is "a" then C1 is 3?

To return a zero when criteria is not met, try:

=(A1="A")*3+(A1="B")*5

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Karen" wrote in message
...
I'm wanting to set a formula so that if cell A1 is "a" then C1 would be 3
and
if A1 is "b" then C1 would be 5.


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
Hide formula skateblade Excel Worksheet Functions 10 October 15th 05 08:36 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM


All times are GMT +1. The time now is 12:04 PM.

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"