ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Allocating a value from a cell (https://www.excelbanter.com/excel-worksheet-functions/39579-allocating-value-cell.html)

babygoode

Allocating a value from a cell
 

Hi,
Is there any way to allocate a value to a cell depending what is in
another cell, so if A1=yes then A2=5 or B1=no then B2=10

Hope that makes sense

Thanks,


--
babygoode
------------------------------------------------------------------------
babygoode's Profile: http://www.excelforum.com/member.php...o&userid=26109
View this thread: http://www.excelforum.com/showthread...hreadid=394367


Morrigan


A2 = IF(A1="yes",5)
B2 = IF(B1="no",10)


babygoode Wrote:
Hi,
Is there any way to allocate a value to a cell depending what is in
another cell, so if A1=yes then A2=5 or B1=no then B2=10

Hope that makes sense

Thanks,



--
Morrigan
------------------------------------------------------------------------
Morrigan's Profile: http://www.excelforum.com/member.php...fo&userid=7094
View this thread: http://www.excelforum.com/showthread...hreadid=394367


Brian Synowiec

Sure You would put this in A2:

=IF(A1="Yes",5,"")

and this in B2:

=IF(B1="No",10,"")

Brian

"babygoode" wrote:


Hi,
Is there any way to allocate a value to a cell depending what is in
another cell, so if A1=yes then A2=5 or B1=no then B2=10

Hope that makes sense

Thanks,


--
babygoode
------------------------------------------------------------------------
babygoode's Profile: http://www.excelforum.com/member.php...o&userid=26109
View this thread: http://www.excelforum.com/showthread...hreadid=394367




All times are GMT +1. The time now is 08:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com