Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 903
Default Vlookup,Index,or Combo of something else

Well was it filtering that you wanted?
If so you can work from there.

A formula can only get data;
However, you can use a formula in a Filter
as seen on Debra's pages.

If you want VBA coding then see
http://www.contextures.com/xlautofilter03.html


"D" wrote in message ...
This process needs to be automatic therefore a formula needs to be in place.

"David McRitchie" wrote:

I had them backwards used sheetb for sheet1, and sheeta for sheetb
but it seems more like you want to use a filter, in which case you
only need one sheet.

If you are trying to display only rows in sheet2 that have an "M"
in Column H then you would filter on Column H for a value of "M"

Select column H then
pref Excel 2007 Data, Filter, on the drop down on row 1 choose "H"

in Excel 2007 (forget it but it is)
Data, Filter, on the drop down on row 1 choose "H"

So much for that, can't stand Excel 2007

You can copy a filtered list and paste is elsewhere as if
the filtered out (unshown) columns aren't even there.
Same for using a filtered list for Mail Merge in MS Word
using a filtered list in Excel as the database.

Debra Dalgleish has pages on Filtering, is that is the type
of thing you want. http://www.contextures.com/tiptech.html


--
HTH,
David McRitchie, Microsoft MVP -- Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm


"D" wrote in message ...
Let me try to explain again:

I want the value of Sheet1!A2 to be transferred onto Sheet2!A2 if the value
on Sheet1!H2 ="M". By doing a straight lookup, if my value in Column H on
Sheet1 is anything other than "M" it will pull a blank. I do not want these
blanks on my Sheet2.


"David McRitchie" wrote:

"D" wrote in message ...
I have 2 worksheets. On Sheet1, if Column H value ="M", then on Sheet2:A2,
bring over the value of Sheet1:A2. If it doesn't find the value "M", then
search for the next row that does.

See http://www.mvps.org/dmcritchie/excel/vlookup.htm

H4: M
I4: =VLOOKUP(H4, sheet2!$A$2:$B$50, 2, 0)

You can improve the above to avoid #N/A errorl with the following:
=IF(ISERROR(VLOOKUP(H4,sheetb!$A$2:$B$50,2,0)),"no t found",VLOOKUP(H4,sheetb!$A$2:$B$50,2,0))

The 0 is False, meaning the list is unsorted.

lookup_value,table_array,col_index_num,range_looku p)


--
HTH,
David McRitchie, Microsoft MVP -- Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combo Box and VLOOKUP Learning Excel Excel Discussion (Misc queries) 7 January 19th 08 10:09 AM
Unexpected #N/A error from INDEX-MATCH combo [email protected] Excel Worksheet Functions 2 July 27th 07 01:13 PM
Can Index/Match pull lookup_value from a combo box? Ruben Torrez Excel Discussion (Misc queries) 2 January 11th 07 05:01 PM
vlookup from a combo box? MA via OfficeKB.com Excel Discussion (Misc queries) 3 July 8th 05 10:34 PM
Vlookup from Combo Box ACase Excel Discussion (Misc queries) 2 March 23rd 05 05:17 PM


All times are GMT +1. The time now is 12:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"