# 2 if condition

#### Zubair

##### Active Member
Hi Experts,

I need to apply the formula as follows :

3 Cell A1
5 Cell A2
7 Cell A3

The formula required in A5 - If A3 is blank then 2 else 3, if A2 is blank then 1 else 2.

Note - A1 can not be blank always showing the number, whereas A3 can not show the figure if A2 is blank.

### Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Is this what you mean
Excel Formula:
``=IF(A3<>"",A3,IF(A2<>"",A2,A1))``

Hi Fluff

Many thanks, I think I have communicated my question correctly, however, your given formula is working with little change as follows :

=IF(A3<>"","3",IF(A2<>"","2","1"))
Regards

Glad to help & thanks for the feedback.

Replies
2
Views
43
Replies
1
Views
48
Replies
1
Views
196
Replies
14
Views
356
Replies
2
Views
86

1,202,976
Messages
6,052,882
Members
444,608
Latest member
Krunal_Shah

### 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.

### Which adblocker are you using?

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

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