ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If Then Logic (https://www.excelbanter.com/excel-worksheet-functions/238502-if-then-logic.html)

RPB

If Then Logic
 
I want to do the following but have been have trouble.

IF A13=1, then G1=3, IF A13=2, then G1=6 and IF A13=3, then G1=9

Can anyone help????

Gary''s Student

If Then Logic
 
In G3 enter:

=3*A13
--
Gary''s Student - gsnu200859


"RPB" wrote:

I want to do the following but have been have trouble.

IF A13=1, then G1=3, IF A13=2, then G1=6 and IF A13=3, then G1=9

Can anyone help????


Mike H

If Then Logic
 
Hi,

Try this in g1

=CHOOSE(A13,3,6,9)

Mike


"RPB" wrote:

I want to do the following but have been have trouble.

IF A13=1, then G1=3, IF A13=2, then G1=6 and IF A13=3, then G1=9

Can anyone help????


Jacob Skaria

If Then Logic
 
Using IF() formula in G1
=IF(A13=1,3,IF(A13=2,6,IF(A13=3,9,"")))

Alternative solutions

=A13*3
OR
=CHOOSE(A13,3,6,9)


If this post helps click Yes
---------------
Jacob Skaria


"RPB" wrote:

I want to do the following but have been have trouble.

IF A13=1, then G1=3, IF A13=2, then G1=6 and IF A13=3, then G1=9

Can anyone help????


RPB

If Then Logic
 
Thank you all. Most helpful.

"Jacob Skaria" wrote:

Using IF() formula in G1
=IF(A13=1,3,IF(A13=2,6,IF(A13=3,9,"")))

Alternative solutions

=A13*3
OR
=CHOOSE(A13,3,6,9)


If this post helps click Yes
---------------
Jacob Skaria


"RPB" wrote:

I want to do the following but have been have trouble.

IF A13=1, then G1=3, IF A13=2, then G1=6 and IF A13=3, then G1=9

Can anyone help????


Dana DeLouis

If Then Logic
 
Another option might be:

=IF(OR(A13={1,2,3}),A13*3,"")

= = =
HTH

RPB wrote:
I want to do the following but have been have trouble.

IF A13=1, then G1=3, IF A13=2, then G1=6 and IF A13=3, then G1=9

Can anyone help????



All times are GMT +1. The time now is 02:11 AM.

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