2 if condition

Zubair

Active Member
Joined
Jul 4, 2009
Messages
296
Office Version
  1. 2016
Platform
  1. Windows
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))
 
Upvote 0
Solution
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
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

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