Forum

Notifications
Clear all

IF and OR Function Help Needed

2 Posts
2 Users
0 Reactions
73 Views
(@victrolio)
Posts: 1
New Member
Topic starter
 

I am only going to use 5 texts for example. Okay, I have the following table:
A      B      C      D
1      Txt1  3      Txt3
2      Txt2
3      Txt3
4      Txt4
5      Txt5 

When the data shows a number 1-5, it displays the corresponding text.

Since I have 5 values, I have a line for each option.

If the formula is false, it displays false.

Id like to find a formula that selects the range and selects the line automatically that does not read “False”, and displays that text in another cell

   A                                                                 B                                     C           D
1   MODEL#                                                     1                                     1          Txt1
2   WANT NAME DISPLAYED HERE:                     XXXX                               2          Txt2
3                                                               =IF($B$1=$C$1, “Txt1”)          3          Txt3
4                                                                =IF($B$2=$C$2, “Txt2”)         4          Txt4
5                                                               =IF($B$3=$C$3, “Txt3”)          5          Txt5
6                                                                =IF($B$4=$C$4, “Txt4”)
7                                                                =IF($B$5=$C$5, “Txt5”)

Now, I want to take B3:B7 and if #2 is the model number, B4 will read Txt2 and B3,B5,B6,&B7 will read FALSE. I want a formula to look through B3:B7 pick the text that isn’t “FALSE” and display that text in cell B2.

 

If column B looks like this after the formulas calculate in B3:B7...

Txt1

False

False

False

False

Then, B2 would read Txt1

 
Posted : 13/05/2021 9:39 am
(@sunnykow)
Posts: 1417
Noble Member
 

Hi Vic

Try this.

In cell B4 by enter =VLOOKUP("*",B5:B19,1,FALSE)

Hope this helps.

Sunny

 
Posted : 14/05/2021 10:44 am
Share: