Vlookup question

tycasey17

Board Regular
Joined
Sep 26, 2013
Messages
93
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
_ENLR and _NO are listed in the name manager with the information below it. The basic thing I'm trying to figure out is how to do the formula. I had it in an excel before I just don't know how I lost it. I think it used MATCH and ISNA.

If a Soldier is RANK and STATUS matchs the one of the red words in each column (_ENLR and _NO), then I want it to say ORDER. If it doesn't match one of the red words in each column then I want it to say NO ORDER.

NAMERANKSTATUSOUTCOME_ENLR_NO
DOE, JOHNSGTTPUORDERPVTTPU
DOE, JANECPTTPUNO ORDERPFCAGR
SNUFFY, JOEPVTAGRNO ORDERSPCIET
SGT
SSG

<tbody>
</tbody>
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
_ENLR and _NO are listed in the name manager with the information below it. The basic thing I'm trying to figure out is how to do the formula. I had it in an excel before I just don't know how I lost it. I think it used MATCH and ISNA.

If a Soldier is RANK and STATUS matchs the one of the red words in each column (_ENLR and _NO), then I want it to say ORDER. If it doesn't match one of the red words in each column then I want it to say NO ORDER.

NAMERANKSTATUSOUTCOME_ENLR_NO
DOE, JOHNSGTTPUORDERPVTTPU
DOE, JANECPTTPUNO ORDERPFCAGR
SNUFFY, JOEPVTAGRNO ORDERSPCIET
SGT
SSG

<tbody>
</tbody>

Hi,
Try this:

Code:
{=IF(SUM(IF(($B3:$C3=F3)+($B3:$C3=G3),1,0))>0,"ORDER","NO ORDER")}

Press CTRL + SHIFT + ENTER to work.

The columns are:
Code:
A: Name
B: Rank
C: Status
D: OutCome
E: _ENLR
F: _NO
 
Last edited:
Upvote 0
I appreciate your assistance.

I actually found what I was looking for and this is what I was actually using. It was ISNUMBER not ISNA

IF(OR(ISNUMBER(MATCH($B4,_ENLR,0)),ISNUMBER(MATCH($E4,_NO,0))),DB!$AA$31,
 
Upvote 0
I appreciate your assistance.

I actually found what I was looking for and this is what I was actually using. It was ISNUMBER not ISNA

IF(OR(ISNUMBER(MATCH($B4,_ENLR,0)),ISNUMBER(MATCH($E4,_NO,0))),DB!$AA$31,

That's good!
Thanks for the feedback!
Cheers!
 
Upvote 0

Forum statistics

Threads
1,214,670
Messages
6,120,831
Members
448,990
Latest member
rohitsomani

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