fungiblecommodity
New Member
- Joined
- Jan 24, 2016
- Messages
- 5
<style type="text/css">P { margin-bottom: 0.21cm; }</style> Hi guys,
I am trying to figure out a formula that will allow me to search for a particular value across spreadsheets without knowing which column they are in.
I have a lot of data on customers from different sources, and have them in separate spreadsheets depending on where the data has come from. The spreadsheets are called "Main, Facebook, Quote, Pixel, Website".
What I want to do is copy and paste new data into "Main" sheet and have a column each for Facebook, Quote, Pixel and Website that checks whether that person's email address already exists in those sheets. Unfortunately the "email" column for each is in a different column, which is the trouble I ran into using Match and VLOOKUP. So what I'd like to do is search each entire spreadsheet for the email, and then return TRUE if Excel finds it. To be honest it doesn't have to return TRUE, it could return anything that would help me differentiate.
My main spreadsheet looks kind of like this:
<style>table { }td { padding-top: 1px; padding-right: 1px; padding-left: 1px; color: black; font-size: 12pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri,sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }.xl65 { border: 0.5pt solid windowtext; }.xl66 { color: rgb(5, 99, 193); text-decoration: underline; border: 0.5pt solid windowtext; }.xl67 { border: 0.5pt solid windowtext; }</style>
<tbody>
</tbody>
<style type="text/css">P { margin-bottom: 0.21cm; }</style> The closest I've got is using the formula on this page: http://www.mrexcel.com/forum/excel-...e-spreadsheet-value-return-cell-location.html and expanding it for my situation.
This is what I'm using in F2 at the moment, and it is returning $B$5677 for example when it finds the email value, and #VALUE when it is not.
=ADDRESS(MIN(IF('Facebook'!$A$1:$Z$6000=B2,ROW('Facebook'!$A$1:$Z$6000))),MIN(IF('Facebook'!$A$1:$Z$6000=B2,COLUMN('Facebook'!$A$1:$Z$6000))))
This would probably be fine, except that my Facebook spreadsheet has more than 17000 rows, and when I expand the range to anything above around $A$1:$Z$8500 it creates a #NAME? error which says "The formula contains unrecognized text". I'm assuming it has a maximum row number that I'm exceeding, but not sure.
I guess I have two questions:
1) Is there an easier way to do what I'm trying to do (ie. look up a cell's value in a whole spreadsheet without specifying a row or column)?
and 2) Why doesn't it work to simply put a larger row number in the formula above?
I have no experience with VBA but I'd be up for having a crack at it if there's no easy formula-based solution.
Any help would be much appreciated.
Thanks!
I am trying to figure out a formula that will allow me to search for a particular value across spreadsheets without knowing which column they are in.
I have a lot of data on customers from different sources, and have them in separate spreadsheets depending on where the data has come from. The spreadsheets are called "Main, Facebook, Quote, Pixel, Website".
What I want to do is copy and paste new data into "Main" sheet and have a column each for Facebook, Quote, Pixel and Website that checks whether that person's email address already exists in those sheets. Unfortunately the "email" column for each is in a different column, which is the trouble I ran into using Match and VLOOKUP. So what I'd like to do is search each entire spreadsheet for the email, and then return TRUE if Excel finds it. To be honest it doesn't have to return TRUE, it could return anything that would help me differentiate.
My main spreadsheet looks kind of like this:
<style>table { }td { padding-top: 1px; padding-right: 1px; padding-left: 1px; color: black; font-size: 12pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri,sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }.xl65 { border: 0.5pt solid windowtext; }.xl66 { color: rgb(5, 99, 193); text-decoration: underline; border: 0.5pt solid windowtext; }.xl67 { border: 0.5pt solid windowtext; }</style>
A | B | C | D | E | F | G | H | I | |
id | mobile_number | suburb | number | Facebook_Match | Quote_Match | Pixel_Match | Website_Match | ||
1 | 5153 | 12312321@blah.com | 28282414 | MOUNT WAVERLEY | 22222 | ||||
2 | 7293 | ajksdhfaskldfhjasdjkf3883@yahoo.com | 212990323 | 33323 | |||||
3 | 8183 | kbaez@blah.org | 6767676767 | Swan Hill | 3222585 | ||||
4 | 12726 | blahblah@yahoo.com.au | 0986754977 | KENSINGTON | 3034331 | ||||
5 | 14600 | ge12ff@adsfjasdpfasdf.org | 76849 737 | 34 | |||||
6 | 24010 | fjfjfjfj@dkdkd.com | 36291739 | Ringwood | 3434134 | ||||
7 | 27215 | fjfadfasdfjfjfj@dkdkd.com | 283746464 | north melbourne | 44444 | ||||
8 | 28003 | fjfjadfasdfasdffjfj@dkdkd.com | 5678987 | 43233 | |||||
9 | 34973 | fjfjfasdfasdfasdfasdfjfj@dkdkd.com | 2222222 | Randwick | 32222 | ||||
10 | 37814 | blah@dkdkd.com | 33333232322 | Kiama | 222222 | ||||
<tbody>
</tbody>
<style type="text/css">P { margin-bottom: 0.21cm; }</style> The closest I've got is using the formula on this page: http://www.mrexcel.com/forum/excel-...e-spreadsheet-value-return-cell-location.html and expanding it for my situation.
This is what I'm using in F2 at the moment, and it is returning $B$5677 for example when it finds the email value, and #VALUE when it is not.
=ADDRESS(MIN(IF('Facebook'!$A$1:$Z$6000=B2,ROW('Facebook'!$A$1:$Z$6000))),MIN(IF('Facebook'!$A$1:$Z$6000=B2,COLUMN('Facebook'!$A$1:$Z$6000))))
This would probably be fine, except that my Facebook spreadsheet has more than 17000 rows, and when I expand the range to anything above around $A$1:$Z$8500 it creates a #NAME? error which says "The formula contains unrecognized text". I'm assuming it has a maximum row number that I'm exceeding, but not sure.
I guess I have two questions:
1) Is there an easier way to do what I'm trying to do (ie. look up a cell's value in a whole spreadsheet without specifying a row or column)?
and 2) Why doesn't it work to simply put a larger row number in the formula above?
I have no experience with VBA but I'd be up for having a crack at it if there's no easy formula-based solution.
Any help would be much appreciated.
Thanks!