Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 4
Default Lookup and Vlookup

Hi All,

I have a spreadsheet with 2 tabs. first has all contact details for my customers with name, address and so on in a single row. i also have a several columns which tells me the group they belong to with a yes against their row.

I want to be able to use the tab 2 to pull out the customers who belong to specific groups.

for eg: if Mr Smith has a yes against their group RAC, i want him to appear on the second tab of my spreadsheet.

each month the groups will change so instead of copying and pasting i want to use a system where it should automatically update the second tab accordingly.

Vlookup may do the trick but i am not sure how to use this with having so many Yes's?

Your help would be appreciated.

I can use filter but the groups change on a daily basis and i would like to automate this if possible.

I have attached a template with deleting 100s of thousands of customer details.
Attached Files
File Type: zip H5000.zip (18.6 KB, 78 views)
  #2   Report Post  
Junior Member
 
Posts: 4
Default

Hi there,

Any help with this will be much appreciated.

thanks

ahmet
  #3   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by ahs004 View Post
Hi there,

Any help with this will be much appreciated.

thanks

ahmet
Could you post a mock up version of what you want it to look like afterward?
  #4   Report Post  
Junior Member
 
Posts: 4
Default

Hi Spencer,

Here is another attachment of how i want it to look after.

Sheet 2 is the layout but it will pull off all data from first sheet.

I hope this is clearer?

Many thanks

Ahmet
Attached Files
File Type: zip H5000.zip (20.5 KB, 38 views)
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 153
Default Lookup and Vlookup

I have a spreadsheet with 2 tabs. first has all contact details for my
customers with name, address and so on in a single row. i also have a
several columns which tells me the group they belong to with a yes
against their row.

I want to be able to use the tab 2 to pull out the customers who belong
to specific groups.

for eg: if Mr Smith has a yes against their group RAC, i want him to
appear on the second tab of my spreadsheet.

each month the groups will change so instead of copying and pasting i
want to use a system where it should automatically update the second tab
accordingly.


In my example, the group names start in Sheet1!M1 and extend to the right. Customer names start in Sheet1!A2 and extend downward.

The desired result is in Sheet3.

Sheet2 holds intermediate calculations.

In Sheet2!A1, put
=IF(Sheet1!M1="","",Sheet1!M1)
and copy rightward as far as could be needed.

Do the same in Sheet3.

In Sheet2!A2 put
=IF(Sheet1!M2="yes",MAX(A$1:A1)+1,"")
and copy rightward and downward as far as could be needed.

In Sheet3!A2 put
=IF(ROW()-1MAX(Sheet2!A:A),"",
OFFSET(Sheet1!$A$1,MATCH(ROW()-1,Sheet2!A:A,0)-1,0))
and copy rightward and downward as far as could be needed.
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
vlookup and lookup Ruth Excel Worksheet Functions 12 December 4th 08 02:17 PM
=IF(AND(LOOKUP(F3,A21:A42)=F3,LOOKUP(B4,B21:B42)=B4),(VLOOKUP(B4,B RWD715 Excel Worksheet Functions 9 October 10th 08 10:11 PM
lookup or vlookup [email protected] Excel Worksheet Functions 7 July 28th 08 11:53 PM
Help with lookup (vlookup) davidio Excel Worksheet Functions 1 July 27th 07 08:42 PM
LOOKUP or VLOOKUP Bennie Excel Worksheet Functions 4 March 24th 05 07:45 PM


All times are GMT +1. The time now is 08:30 PM.

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

About Us

"It's about Microsoft Excel"