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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
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)))))

[TABLE="width: 490"]
<colgroup><col width="70" span="7" style="width:52pt"> </colgroup><tbody>[TR]
[TD="class: xl64, width: 70"][/TD]
[TD="class: xl64, width: 70"]A[/TD]
[TD="class: xl64, width: 70"]B[/TD]
[TD="class: xl64, width: 70"]C[/TD]
[TD="class: xl64, width: 70"]D[/TD]
[TD="class: xl64, width: 70"]E[/TD]
[TD="class: xl64, width: 70"]F[/TD]
[/TR]
[TR]
[TD="class: xl64"]1[/TD]
[TD="class: xl64"]other[/TD]
[TD="class: xl64"]other[/TD]
[TD="class: xl64"]other[/TD]
[TD="class: xl64"]taxi[/TD]
[TD="class: xl64"]other[/TD]
[TD="class: xl64"]taxi[/TD]
[/TR]
[TR]
[TD="class: xl64"]2[/TD]
[TD="class: xl64"]other[/TD]
[TD="class: xl64"]other[/TD]
[TD="class: xl64"]other[/TD]
[TD="class: xl64"]other[/TD]
[TD="class: xl64"]car[/TD]
[TD="class: xl64"]car[/TD]
[/TR]
[TR]
[TD="class: xl64"]3[/TD]
[TD="class: xl64"]other[/TD]
[TD="class: xl64"]other[/TD]
[TD="class: xl64"]other[/TD]
[TD="class: xl64"]other[/TD]
[TD="class: xl64"]other[/TD]
[TD="class: xl64"]other[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
FYI, the 2 formulas return different results if there is more than one "odd" word.
 
Upvote 0

Forum statistics

Threads
1,223,902
Messages
6,175,278
Members
452,629
Latest member
SahilPolekar

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