Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Macro that analyses data from 3 columns and puts result in 4th

I have column A with 100 cells . All cells contain numbers from 1 to 100 .
Every cell has a different number as content
I have column B with 100 cells containing numbers , too .
Tthis time the content from each cell is not unique . Number 3 can be in
cell B6 , B7 etc (example)

I put a list with numbers in column C . All numbers in column C are to be
found in A column .

Example :

A1 - 1 B1- 1 C1- 7
A2 - 2 B2- 1 C2- 3
A3 - 3 B3- 2 C3- 1
A4- 4 B4- 2 C4- 5
A5 - 5 B5- 3
A6 - 6 B6- 4
A7 - 7 B7- 4
A8 - 8 B8- 4

Tha macro should do this . Reads C1 . Finds the same content in A7 . So it
puts in D1 the content from B7 ( number 4 )
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Macro that analyses data from 3 columns and puts result in 4th

Hi,

A macro isn't necessary for this. Put the formula below in D1 and drag down

IF(COUNTIF($A$1:$A$8,C1)=0,"",VLOOKUP(C1,$A$1:$B$8 ,2,FALSE))

Mike

"andrei" wrote:

I have column A with 100 cells . All cells contain numbers from 1 to 100 .
Every cell has a different number as content
I have column B with 100 cells containing numbers , too .
Tthis time the content from each cell is not unique . Number 3 can be in
cell B6 , B7 etc (example)

I put a list with numbers in column C . All numbers in column C are to be
found in A column .

Example :

A1 - 1 B1- 1 C1- 7
A2 - 2 B2- 1 C2- 3
A3 - 3 B3- 2 C3- 1
A4- 4 B4- 2 C4- 5
A5 - 5 B5- 3
A6 - 6 B6- 4
A7 - 7 B7- 4
A8 - 8 B8- 4

Tha macro should do this . Reads C1 . Finds the same content in A7 . So it
puts in D1 the content from B7 ( number 4 )

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Macro that analyses data from 3 columns and puts result in 4th

Many thanks !

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
How to do LSD test in data analyses MD Excel Discussion (Misc queries) 1 March 17th 10 07:24 AM
Outline/group 2 columns- what puts the control on the left vs righ frustrated Excel Discussion (Misc queries) 0 December 10th 08 03:59 AM
Compute multiple data analyses at once Elle Excel Discussion (Misc queries) 2 July 3rd 07 11:38 AM
What Excel macro puts data in the NEXT row of a sheet? KenC New Users to Excel 1 January 16th 07 06:48 AM
Macro puts #REF in VLOOKUP formula DJH224 Excel Worksheet Functions 1 January 27th 06 05:37 PM


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