#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Search function.

Hello everybody,
does anyone know what funtion to use when searching for a value in a
given excel file using the values in TWO COLUMNS together as a one
unique search "key"?

If we think SQL it might have been something like this

SELECT excelcell
WHERE thisexcelsheet.A1 = thatexcelsheet.columnA1
AND thisexcelsheet.columnB1 = thatexcelsheet.columnB1

I know that was badly explained but if anyone understood what I´m
after, feel free to help me out ;)
Thanks!
Havard

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Search function.

You could join the two columns together in a helper column and use that
as the search column.

Hope this helps.

Pete

the_intern wrote:
Hello everybody,
does anyone know what funtion to use when searching for a value in a
given excel file using the values in TWO COLUMNS together as a one
unique search "key"?

If we think SQL it might have been something like this

SELECT excelcell
WHERE thisexcelsheet.A1 = thatexcelsheet.columnA1
AND thisexcelsheet.columnB1 = thatexcelsheet.columnB1

I know that was badly explained but if anyone understood what I´m
after, feel free to help me out ;)
Thanks!
Havard


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Search function.

Hi there Pete,
I was thinking about that as well, but the downside is that it would
make my excel sheets even more filled with repeating data... and they
are really messy enough as it is ;)

Besides, these excel sheets are shared with a lot of people using them
for different purposes, so a change in the set-up of the spreadsheets
would mean that a lot of people might have to be informed and do a lot
of minor changes to their spreadsheets.

So, what I´m looking for is a way to do this that doesnt imply having
to change the spreadsheet that I´m reading from.

I´m sure there´s a clever function to do this, but my excel skills
are quite limited.
Thanks for the reply, though!


Pete_UK ha escrito:

You could join the two columns together in a helper column and use that
as the search column.

Hope this helps.

Pete

the_intern wrote:
Hello everybody,
does anyone know what funtion to use when searching for a value in a
given excel file using the values in TWO COLUMNS together as a one
unique search "key"?

If we think SQL it might have been something like this

SELECT excelcell
WHERE thisexcelsheet.A1 = thatexcelsheet.columnA1
AND thisexcelsheet.columnB1 = thatexcelsheet.columnB1

I know that was badly explained but if anyone understood what I´m
after, feel free to help me out ;)
Thanks!
Havard


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 function to search an entire workbook liseladele Excel Worksheet Functions 0 November 10th 05 12:35 AM
a search function jacko Excel Worksheet Functions 1 June 1st 05 12:51 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Search function nc Excel Discussion (Misc queries) 7 May 13th 05 03:08 PM
Search function using commas Kylie Excel Worksheet Functions 1 February 2nd 05 02:46 AM


All times are GMT +1. The time now is 09:51 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"