Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 361
Default LookUp/Match Question

My data table looks like this:

Date AA BAC DELL
20071203 4.83% 19.72% 7.50%
20071204 6.27% 10.49% 10.02%
20071205 10.61% 2.12% 5.32%
20071206 5.31% 20.33% 12.82%
20071207 8.64% 7.70% 2.97%

I am looking for a formula for ColC of this table:

Date Name Percent
20071203 AA 4.83%
20071203 BAC 19.72%
20071203 DELL 7.50%
20071204 AA 6.27%
20071204 BAC 10.49%
20071204 DELL 10.02%


Thank you in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default LookUp/Match Question

With this table in the range A2:D6 -

20071203 4.83% 19.72% 7.50%
20071204 6.27% 10.49% 10.02%
20071205 10.61% 2.12% 5.32%
20071206 5.31% 20.33% 12.82%
20071207 8.64% 7.70% 2.97%


With this table in the range A11:B16 -

20071203 AA
20071203 BAC
20071203 DELL
20071204 AA
20071204 BAC
20071204 DELL


Enter this formula in C11 and copy down as needed:

=INDEX(B$2:D$6,MATCH(A11,A$2:A$6,0),MATCH(B11,B$1: D$1,0))

Format as %


--
Biff
Microsoft Excel MVP


"carl" wrote in message
...
My data table looks like this:

Date AA BAC DELL
20071203 4.83% 19.72% 7.50%
20071204 6.27% 10.49% 10.02%
20071205 10.61% 2.12% 5.32%
20071206 5.31% 20.33% 12.82%
20071207 8.64% 7.70% 2.97%

I am looking for a formula for ColC of this table:

Date Name Percent
20071203 AA 4.83%
20071203 BAC 19.72%
20071203 DELL 7.50%
20071204 AA 6.27%
20071204 BAC 10.49%
20071204 DELL 10.02%


Thank you in advance.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default LookUp/Match Question

Public Sub ProcessData()
Dim i As Long
Dim LastItem As Long
Dim NextRow As Long

With ActiveSheet

Application.ScreenUpdating = False
LastItem = .Cells(.Rows.Count, "A").End(xlUp).Row
NextRow = 1
.Columns(2).Insert
For i = LastItem To 2 Step -1
.Rows(i + 1).Resize(2).Insert
.Cells(i + 2, "A").Value = .Cells(i, "A")
.Cells(i + 2, "C").Value = .Cells(i, "E")
.Cells(i + 2, "B").Value = .Cells(1, "E")
.Cells(i + 1, "A").Value = .Cells(i, "A")
.Cells(i + 1, "C").Value = .Cells(i, "D")
.Cells(i + 1, "B").Value = .Cells(1, "D")
.Cells(i, "B").Value = .Cells(1, "C").Value
.Cells(i, "D").Resize(, 2).ClearContents
Next i
.Range("B1:E1") = Array("Name", "Percent", "", "")
Application.ScreenUpdating = True
End With

End Sub


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"carl" wrote in message
...
My data table looks like this:

Date AA BAC DELL
20071203 4.83% 19.72% 7.50%
20071204 6.27% 10.49% 10.02%
20071205 10.61% 2.12% 5.32%
20071206 5.31% 20.33% 12.82%
20071207 8.64% 7.70% 2.97%

I am looking for a formula for ColC of this table:

Date Name Percent
20071203 AA 4.83%
20071203 BAC 19.72%
20071203 DELL 7.50%
20071204 AA 6.27%
20071204 BAC 10.49%
20071204 DELL 10.02%


Thank you in advance.



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
Partial match lookup question [email protected] Excel Worksheet Functions 5 November 16th 06 08:03 AM
Match Lookup question chad Excel Worksheet Functions 8 September 12th 06 12:45 AM
Lookup? Match? pulling rows from one spreadsheet to match a text f cjax Excel Worksheet Functions 3 July 21st 06 02:51 PM
A question for Match and Lookup Bin Excel Discussion (Misc queries) 1 June 26th 06 07:45 PM
LookUp/Match Question carl Excel Worksheet Functions 2 October 5th 05 07:36 PM


All times are GMT +1. The time now is 10:00 AM.

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"