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 ?
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
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
 
Upvote 0
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
 
Upvote 0
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))
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,615
Messages
6,120,538
Members
448,970
Latest member
kennimack

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