Find the odd word out

JontyJonty

New Member
Joined
Jul 30, 2009
Messages
4
Hello , i have 5 columns of data.

A1 = "other"
B1 = "other"
C1 = "other"
D1 = "taxi"
E1 = "other"

A2 = "other"
B2 = "other"
C2 = "other"
D2 = "other"
E2 = "car"


A3 = "other"
B3 = "other"
C3 = "other"
D3 = "other"
E3 = "other"


I am trying to work out a formula in F1, F2, F3 whereby if row contains no other word than other then put "other", otherwise put the first 'odd word'

ie in F1 it would put "taxi"
in F2 it would put "car"
in F3 it would put "other"


Thanks a lot
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi,

Try this:-

Ctrl+Shift+Enter NOT just Enter

F1 =IF(COUNTIF(A1:E1,"other")=5,"other",INDEX(A1:E1,,MIN(IF(A1:E1<>"other",COLUMN(A1:E1)))))

ABCDEF
1otherotherothertaxiothertaxi
2otherotherotherothercarcar
3otherotherotherotherotherother

<colgroup><col width="70" span="7" style="width:52pt"> </colgroup><tbody>
</tbody>
 
Upvote 0
FYI, the 2 formulas return different results if there is more than one "odd" word.
 
Upvote 0

Forum statistics

Threads
1,215,094
Messages
6,123,071
Members
449,092
Latest member
ipruravindra

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