Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Uneven column lookup

I have a table that looks like the following:

100 200 300 Z1
400 500 Z2
600 Z3
700 800 900 Z4

Then on another worksheet the following:
100
200
300
400
500
600
700
800
900

I would like to do some sort of lookup to find which Z goes with each number.
So that my final table would be:
100 Z1
200 Z1
300 Z1
400 Z2
500 Z2
600 Z3
700 Z4
800 Z4
900 Z4

Thanks for any input!

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200911/1

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 57
Default Uneven column lookup

On Nov 7, 1:42*pm, "brownti" <u31540@uwe wrote:
I have a table that looks like the following:

100 * * 200 * * 300 * * Z1
400 * * 500 * * * * * * * *Z2
600 * * * * * * * * * * * * * Z3
700 * * 800 * * 900 * * Z4

Then on another worksheet the following:
100
200
300
400
500
600
700
800
900

I would like to do some sort of lookup to find which Z goes with each number.
So that my final table would be:
100 * Z1
200 * Z1
300 * Z1
400 * Z2
500 * Z2
600 * Z3
700 * Z4
800 * Z4
900 * Z4

Thanks for any input!

--
Message posted via OfficeKB.comhttp://www.officekb.com/Uwe/Forums.aspx/excel-functions/200911/1


If you have the table in sheet 1 with numbers in A1:C4 and "Z1" etc in
D1:D4 then try this formula in another sheet A2 with lookup value in
A1

=IF(COUNTIF(Sheet1!A$1:C$4,A1),INDEX(Sheet1!D$1:D$ 4,MIN(IF(Sheet1!A$1:C
$4=A1,ROW(Sheet1!D$1:D$4)-ROW(Sheet1!D$1)+1))),"No Match")

confirmed with CTRL+SHIFT+ENTER and copied down the column

regards, barry
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Uneven column lookup

Hi,

Try this

=INDEX(Sheet1!$F$3:$F$6,SUMPRODUCT((Sheet1!$C$3:$E $6=Sheet2!B4)*(ROW(Sheet1!$C$3:$C$6)-ROW(Sheet1!C$2))),1)
and copy down

Sheet1!$C$3:$E$6 is the 4 column shown in your question below
Sheet2!B4 contains 100 on another worksheet

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"brownti" <u31540@uwe wrote in message news:9eab699d6296b@uwe...
I have a table that looks like the following:

100 200 300 Z1
400 500 Z2
600 Z3
700 800 900 Z4

Then on another worksheet the following:
100
200
300
400
500
600
700
800
900

I would like to do some sort of lookup to find which Z goes with each
number.
So that my final table would be:
100 Z1
200 Z1
300 Z1
400 Z2
500 Z2
600 Z3
700 Z4
800 Z4
900 Z4

Thanks for any input!

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200911/1

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 103
Default Uneven column lookup

Both work perfect! Thank you very much

Ashish Mathur wrote:
Hi,

Try this

=INDEX(Sheet1!$F$3:$F$6,SUMPRODUCT((Sheet1!$C$3:$ E$6=Sheet2!B4)*(ROW(Sheet1!$C$3:$C$6)-ROW(Sheet1!C$2))),1)
and copy down

Sheet1!$C$3:$E$6 is the 4 column shown in your question below
Sheet2!B4 contains 100 on another worksheet

I have a table that looks like the following:

[quoted text clipped - 28 lines]

Thanks for any input!


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200911/1

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Uneven column lookup

You are welcome

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"brownti via OfficeKB.com" <u31540@uwe wrote in message
news:9edca45573480@uwe...
Both work perfect! Thank you very much

Ashish Mathur wrote:
Hi,

Try this

=INDEX(Sheet1!$F$3:$F$6,SUMPRODUCT((Sheet1!$C$3: $E$6=Sheet2!B4)*(ROW(Sheet1!$C$3:$C$6)-ROW(Sheet1!C$2))),1)
and copy down

Sheet1!$C$3:$E$6 is the 4 column shown in your question below
Sheet2!B4 contains 100 on another worksheet

I have a table that looks like the following:

[quoted text clipped - 28 lines]

Thanks for any input!


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200911/1

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
Combining Uneven Columns moparfamily Excel Worksheet Functions 2 July 15th 09 02:24 PM
Compare 2 uneven colums MDI Anne Excel Discussion (Misc queries) 2 May 12th 09 01:32 PM
Font looks uneven in spreadsheet Julie Excel Discussion (Misc queries) 0 March 22nd 07 09:45 PM
lookup with uneven columns [email protected] Excel Worksheet Functions 3 December 21st 06 07:32 PM
An uneven time-increment smurray444 Charts and Charting in Excel 1 February 8th 06 05:11 AM


All times are GMT +1. The time now is 06:52 AM.

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"