If with multiple criteria

raccoon588

Board Regular
Joined
Aug 5, 2016
Messages
118
Id like to write a formula that has an if with more then one criteria but nothing seems to be working. =if(n1="ablation", i want to look in a table for two criteria and return the amount in column H.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
You can use AND or OR depending on whether both criteria must be met, or just one of the two, respectively.

=IF(AND(n1="ablation",o1 = "something else"),H1,"")
 
Upvote 0
Not to my knowledge but you can for Match, inside of index/match like this:

=INDEX(MATCH(CELL1&CELL2,RANGE1&RANGE2,0))

if you give data we can help write the formula so it works, if you need help
 
Upvote 0
[TABLE="width: 1167"]
<colgroup><col><col><col><col><col><col><col><col><col span="5"><col><col><col></colgroup><tbody>[TR]
[TD]Month[/TD]
[TD]Deck[/TD]
[TD]Resource Name[/TD]
[TD]OutputSum[/TD]
[TD]GoalSum[/TD]
[TD]Goal%[/TD]
[TD]TheoSum[/TD]
[TD]OEE%[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]MASTER[/TD]
[TD="colspan: 2"]Ablation[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10/1/2019[/TD]
[TD]HIL-9007[/TD]
[TD]HIL-9007-FIM[/TD]
[TD]380441[/TD]
[TD]423262[/TD]
[TD]89.88%[/TD]
[TD]536131[/TD]
[TD]70.96%[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD]OEE[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10/1/2019[/TD]
[TD]HIL-Ablation[/TD]
[TD]HIL-Ablation-Laser[/TD]
[TD]173949[/TD]
[TD]308741[/TD]
[TD]56.34%[/TD]
[TD]353882[/TD]
[TD]49.15%[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]10/1/2019[/TD]
[TD]HIL-9007-FIM[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10/1/2019[/TD]
[TD]HIL-Coating[/TD]
[TD]HIL-Coating-QRQC[/TD]
[TD]635222[/TD]
[TD]741375[/TD]
[TD]85.68%[/TD]
[TD]892736[/TD]
[TD]71.15%[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Nov[/TD]
[TD]#ref ![/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10/1/2019[/TD]
[TD]HIL-H13Assembly[/TD]
[TD]HIL-H13Assembly-FIM[/TD]
[TD]391167[/TD]
[TD]537350[/TD]
[TD]72.80%[/TD]
[TD]661274[/TD]
[TD]59.15%[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Dec[/TD]
[TD]#ref ![/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10/1/2019[/TD]
[TD]HIL-H13Capsule[/TD]
[TD]HIL-H13Capsule-RingMo[/TD]
[TD]465458[/TD]
[TD]413297[/TD]
[TD]112.62%[/TD]
[TD]514479[/TD]
[TD]90.47%[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Jan[/TD]
[TD]#ref ![/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10/1/2019[/TD]
[TD]HIL-H8[/TD]
[TD]HIL-H8-Ager[/TD]
[TD]425523[/TD]
[TD]529793[/TD]
[TD]80.32%[/TD]
[TD]721731[/TD]
[TD]58.96%[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Feb[/TD]
[TD]#ref ![/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Mar[/TD]
[TD]#ref ![/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Apr[/TD]
[TD]#ref ![/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]May[/TD]
[TD]#ref ![/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Jun[/TD]
[TD]#ref ![/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Jul[/TD]
[TD]#ref ![/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Aug[/TD]
[TD]#ref ![/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Sep[/TD]
[TD]#ref ![/TD]
[TD]





[/TD]
[/TR]
</tbody>[/TABLE]
This is some of my data. Will be adding months as they close. over to the right i would like to be able to change the data based on the machine. ablation is an example of one of the machines i need the OEE % number to show in the cell that has the #ref .
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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