#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default What Formula to Use

Scenario:

C1R1 has a Yes or No Option

C2R1 has a "numerical value in it"

C3R1 needs a formula that would pick the numerical value in C2R1 if the
answer in C1R1 is "Yes" , if the answer is "No" it would put a "0" in that
column.

Thank you
--
NAGYO
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default What Formula to Use

Try:

=IF(R1C1="Yes",R2C1,0)

or:

=IF(A1="Yes",A2,0)

for A1 style

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"NAGYO" .(donotspam) wrote in message
...
Scenario:

C1R1 has a Yes or No Option

C2R1 has a "numerical value in it"

C3R1 needs a formula that would pick the numerical value in C2R1 if the
answer in C1R1 is "Yes" , if the answer is "No" it would put a "0" in that
column.

Thank you
--
NAGYO



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default What Formula to Use

C1R1 I presume is A1
C2R1 I presume is A2
C3R1 I presume is A3

this being so then the formula in A3 would be something like this
=IF(A1="Yes",A2,IF(A1="No",0))

Good Luck
D

"NAGYO" wrote:

Scenario:

C1R1 has a Yes or No Option

C2R1 has a "numerical value in it"

C3R1 needs a formula that would pick the numerical value in C2R1 if the
answer in C1R1 is "Yes" , if the answer is "No" it would put a "0" in that
column.

Thank you
--
NAGYO

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default What Formula to Use

Thank you Baffled, that worked.


So Suppose you have "Yes", "No", and "Maybe", and you want to assign a
value of "0" to "No" and "Maybe" but if Yes you want the Value in A2 to be
shown. How would that change the formula?

Thanks
--
NAGYO


"Baffled" wrote:

C1R1 I presume is A1
C2R1 I presume is A2
C3R1 I presume is A3

this being so then the formula in A3 would be something like this
=IF(A1="Yes",A2,IF(A1="No",0))

Good Luck
D

"NAGYO" wrote:

Scenario:

C1R1 has a Yes or No Option

C2R1 has a "numerical value in it"

C3R1 needs a formula that would pick the numerical value in C2R1 if the
answer in C1R1 is "Yes" , if the answer is "No" it would put a "0" in that
column.

Thank you
--
NAGYO

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default What Formula to Use

It would change like this
from =IF(A1="Yes",A2,IF(A1="No",0))
to
=IF(A1="Yes",A2,IF(A1="No",0, IF(A1="Maybe", 0)))

"NAGYO" wrote:

Thank you Baffled, that worked.


So Suppose you have "Yes", "No", and "Maybe", and you want to assign a
value of "0" to "No" and "Maybe" but if Yes you want the Value in A2 to be
shown. How would that change the formula?

Thanks
--
NAGYO


"Baffled" wrote:

C1R1 I presume is A1
C2R1 I presume is A2
C3R1 I presume is A3

this being so then the formula in A3 would be something like this
=IF(A1="Yes",A2,IF(A1="No",0))

Good Luck
D

"NAGYO" wrote:

Scenario:

C1R1 has a Yes or No Option

C2R1 has a "numerical value in it"

C3R1 needs a formula that would pick the numerical value in C2R1 if the
answer in C1R1 is "Yes" , if the answer is "No" it would put a "0" in that
column.

Thank you
--
NAGYO



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default What Formula to Use

Thank you for all your help. I had come up with the same formula and your
post confirms it.


--
NAGYO


"Baffled" wrote:

It would change like this
from =IF(A1="Yes",A2,IF(A1="No",0))
to
=IF(A1="Yes",A2,IF(A1="No",0, IF(A1="Maybe", 0)))

"NAGYO" wrote:

Thank you Baffled, that worked.


So Suppose you have "Yes", "No", and "Maybe", and you want to assign a
value of "0" to "No" and "Maybe" but if Yes you want the Value in A2 to be
shown. How would that change the formula?

Thanks
--
NAGYO


"Baffled" wrote:

C1R1 I presume is A1
C2R1 I presume is A2
C3R1 I presume is A3

this being so then the formula in A3 would be something like this
=IF(A1="Yes",A2,IF(A1="No",0))

Good Luck
D

"NAGYO" wrote:

Scenario:

C1R1 has a Yes or No Option

C2R1 has a "numerical value in it"

C3R1 needs a formula that would pick the numerical value in C2R1 if the
answer in C1R1 is "Yes" , if the answer is "No" it would put a "0" in that
column.

Thank you
--
NAGYO

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



All times are GMT +1. The time now is 09:43 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"