IF and AND Statements

fsdeniro

New Member
Joined
May 15, 2002
Messages
40
Hello,

Struggling to figure out how to use IF and AND function. I would appreciate any help!

Cell A1= 1
Cell A2= 1
Cell A3=5
Cell A4=2.5
Cell A5= 3
Cell A6= 10

I want to create formula that looks at Cell A1 and if the value if 1 then return value of Cell A3/Cell A4 (2). If value in Cell A1 is not 1 then it looks at Cell A2. If Cell A2 is 1 then return value in Cell A5 (3), if not then value in cell A6 (10).

Looks simple but I can't get to it.

Thanks
Frank
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
cell a1= 1
cell a2= 1
cell a3=5
cell a4=2.5
cell a5= 3
cell a6= 10
i want to create formula that looks at cell a1 and if the value if 1 then return value of cell a3/cell a4 (2). If value in cell a1 is not 1 then it looks at cell a2. If cell a2 is 1 then return value in cell a5 (3), if not then value in cell a6 (10).

=if(a1=1,a3/a4,if(a2=1,a5,a6))
 
Upvote 0

Forum statistics

Threads
1,224,520
Messages
6,179,270
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top