More help needed .... IF statement with VLOOKUP

TURK

New Member
Joined
Mar 27, 2005
Messages
37
Hi all,

I'm a bit stuck, again ! hope you can help with this one, i've searched the posts, but none of the threads don't seen to achieve the result i need.

What I am trying to do is is 'import' all the jobs at "COM" status to another sheet.
You'll see in the example below I have book2
Book2.xls
ABCDEF
1JobNoStatusDate
2
3
4
5
6
7
8
9
10
COM


I want to 'import' only the jobs at "COM" status to this sheet, including obviously the job numbers and the date they were completed, from this sheet (reports).
Book2.xls
ABCDEF
1jobnocustomerregiondatastatusdate
222221111allensouthCOM02/01/2009
377770000smithsouthCOM02/01/2009
411112222jonessouthPAS02/01/2009
512345678kennysouthCOM02/01/2009
644444444audransouthPAS02/01/2009
711112222hutchsouthPAS02/01/2009
8
9
10
reports


Thanks to a member of the forum, I can do this on the same sheet, ( sorting out all the COM status jobs ) with the following formula<B>=IF(ISNA(VLOOKUP(A3,Sky.Report!$A$381:$B$647,1,FALSE)),"",(VLOOKUP(A3,Sky.Report!$A$381:$B$647,1,FALSE)))</B>
But how do you get it to work from another sheet ?
 

Some videos you may like

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
Use Advanced Filter. Choose Filter to new location. Note, AF must originate from the destination sheet. For a more robust approach, you might use MSQuery!!
lenze
 

TURK

New Member
Joined
Mar 27, 2005
Messages
37
Hi lenze,

I have no idea what you have just said <img class="inlineimg" src="images/icons/icon9.gif" alt="Unhappy" border="0" />

I was hoping there was a formula that would simply lookup the job no, and return COM with an IF statement, like if job no in column A has COM in column E, and return date from colmn F.

" I'm a Noobie, please be gentle " <img class="inlineimg" src="images/icons/icon7.gif" alt="Smile" border="0" />

TURK
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,201
Hi lenze,

I have no idea what you have just said
icon9.gif


I was hoping there was a formula that would simply lookup the job no, and return COM with an IF statement, like if job no in column A has COM in column E, and return date from colmn F.

" I'm a Noobie, please be gentle "
icon7.gif


TURK

Control+shift+enter, not just enter:

=INDEX($F$2:$F$7,MATCH(1,IF($A$2:$A$7=JobNo,IF($E$2:$E$7="COM",1)),0))
 

waldymar

Board Regular
Joined
Feb 19, 2009
Messages
238
Hi man,

the previous post was correct. you don't need to copy your data to another spreadsheet. just work with the existed data. what you need is to filter your data. do this steps:
1. select your head row
2. on the main menu choose "DATA"->Filter->Autofilter. click on that.
3. from drop-down list choose "COM", or whatever you like.

tell me if it what you were looking for.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,489
Messages
5,596,455
Members
414,069
Latest member
StudExcel

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
Top