Output based on multiple criteria/columns

MagsinoAS

New Member
Joined
Sep 28, 2011
Messages
20
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Order[/TD]
[TD]Appple[/TD]
[TD]Orange[/TD]
[TD]Lemon[/TD]
[TD]None[/TD]
[TD]Null[/TD]
[TD]ProdType[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Apple[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Apple[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Apple[/TD]
[TD][/TD]
[TD][/TD]
[TD]None[/TD]
[TD]Null[/TD]
[TD]Apple[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Apple[/TD]
[TD]Orange[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Multiple[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]None[/TD]
[TD]Null[/TD]
[TD]No ProdType[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD]Lemon[/TD]
[TD]None[/TD]
[TD]Null[/TD]
[TD]Lemon[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]None[/TD]
[TD][/TD]
[TD]No ProdType[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Apple[/TD]
[TD]Orange[/TD]
[TD]Lemon[/TD]
[TD]None[/TD]
[TD]Null[/TD]
[TD]Multiple[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Null[/TD]
[TD]No ProdType[/TD]
[/TR]
</tbody>[/TABLE]















Based on the following criterias, I need a formula to get the ProdType.
Thanks for in advance.





<attachment></attachment><attachment></attachment>
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
[Table="width:, class:head"][tr=bgcolor:#E0E0F0][th] [/th][th]
A
[/th][th]
B
[/th][th]
C
[/th][th]
D
[/th][th]
E
[/th][th]
F
[/th][th]
G
[/th][/tr]
[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
1
[/td][td]Order[/td][td]Appple[/td][td]Orange[/td][td]Lemon[/td][td]None[/td][td]Null[/td][td]ProdType[/td][/tr]


[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
2
[/td][td]
1​
[/td][td]Apple[/td][td][/td][td][/td][td][/td][td][/td][td]Apple[/td][/tr]


[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
3
[/td][td]
2​
[/td][td]Apple[/td][td][/td][td][/td][td]None[/td][td]Null[/td][td]Apple[/td][/tr]


[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
4
[/td][td]
3​
[/td][td]Apple[/td][td]Orange[/td][td][/td][td][/td][td][/td][td]Multiple[/td][/tr]


[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
5
[/td][td]
4​
[/td][td][/td][td][/td][td][/td][td]None[/td][td]Null[/td][td]No ProdType[/td][/tr]


[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
6
[/td][td]
5​
[/td][td][/td][td][/td][td]Lemon[/td][td]None[/td][td]Null[/td][td]Lemon[/td][/tr]


[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
7
[/td][td]
6​
[/td][td][/td][td][/td][td][/td][td]None[/td][td][/td][td]No ProdType[/td][/tr]


[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
8
[/td][td]
7​
[/td][td]Apple[/td][td]Orange[/td][td]Lemon[/td][td]None[/td][td]Null[/td][td]Multiple[/td][/tr]


[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
9
[/td][td]
8​
[/td][td][/td][td][/td][td][/td][td][/td][td]Null[/td][td]No ProdType[/td][/tr]
[/table]
[Table="width:, class:grid"][tr][td]Sheet: Sheet71[/td][/tr][/table]

Array formula in cell G2:
=IF(COUNTIF(B2:D2,"<>")=0,"No ProdType",IF(COUNTIF(B2:D2,"<>")>1,"Multiple",INDEX(B2:D2,MATCH(TRUE,B2:D2<>"",0))))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,895
Messages
6,175,257
Members
452,625
Latest member
saadat28

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