Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 557
Default PLEASE HELP - FORMULA NEEDED

I have data in sheet 1 (please see below)

A B C D E F ---------Columns
2 50 200801
2 50 200806
4 25 200803
4 25 200806
5 7.72 200801
5 7.88 200802
5 7.13 200803
6 100 200806
7 8 200802
7 9 200803
8 100 200808
9 3 200801
9 0.26 200802


and I have table in sheet 2 (please see below)


A B C ---------Columns
NO 200801 200802
2
4
5
6
7
8
9


I want some sort of lookup formula in column B2 and C2 of sheet 2
(which I can drag down) which should look values of cell A2 and B1 of
sheet 2 in column A to column F of sheet 1 and bring value from
column
C of sheet 1 to cell B2 of sheet 2 and then same thing in cell C2 of
sheet 2
Result of formula should look like this (please see below)


A B C ---------Columns
NO 200801 200802
2 50
4
5 7.72 7.88
6
7 8
8
9 3 0.26


Please if any body can help


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default PLEASE HELP - FORMULA NEEDED

This macro should do it.
Sub copynums()
mc = "f"
For i = 2 To 14
'MsgBox Cells(i, mc)
With Sheets("sheet4") 'destinationsheet
destcol = .Rows("1:1").Find(What:=Cells(i, mc), _
After:=.Cells(1, 1), LookIn:=xlValues, _
LookAt:=xlWhole, SearchOrder:=xlByColumns, _
SearchDirection:=xlNext).Column
'MsgBox destcol
..Cells(i, destcol) = Cells(i, mc).Offset(, -4)
End With
Next i
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"K" wrote in message
...
I have data in sheet 1 (please see below)

A B C D E F ---------Columns
2 50 200801
2 50 200806
4 25 200803
4 25 200806
5 7.72 200801
5 7.88 200802
5 7.13 200803
6 100 200806
7 8 200802
7 9 200803
8 100 200808
9 3 200801
9 0.26 200802


and I have table in sheet 2 (please see below)


A B C ---------Columns
NO 200801 200802
2
4
5
6
7
8
9


I want some sort of lookup formula in column B2 and C2 of sheet 2
(which I can drag down) which should look values of cell A2 and B1 of
sheet 2 in column A to column F of sheet 1 and bring value from
column
C of sheet 1 to cell B2 of sheet 2 and then same thing in cell C2 of
sheet 2
Result of formula should look like this (please see below)


A B C ---------Columns
NO 200801 200802
2 50
4
5 7.72 7.88
6
7 8
8
9 3 0.26


Please if any body can help



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
formula needed Carmellajade New Users to Excel 2 January 14th 11 01:46 PM
needed formula ez3zz Excel Worksheet Functions 1 February 10th 09 05:47 PM
Excel formula to copy/paste formula needed please. colwyn Excel Discussion (Misc queries) 4 October 22nd 08 11:27 PM
Formula help needed ! thegooner Excel Discussion (Misc queries) 1 July 26th 06 11:47 AM
Help! Formula needed. Samrasr Excel Discussion (Misc queries) 1 January 26th 05 12:01 PM


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