Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default how do create a formula

I have 2 columns in a worksheet #1
Column 1 Client Code
Cloumn 2 Client Type


In Worksheet #2 i have the same columns

If i populate Column 1 in worksheet #2 with a client Code how do i input the
Client Type based on the information in Worksheet #1

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default how do create a formula

If they are the same columns (say, A and B) on each sheet:

With Worksheets("Worksheet #2")
..Range(.Cells(2, 2), .Cells(.Cells(Rows.Count, 1).End(xlUp).Row, 2)).FormulaR1C1 = _
"=VLOOKUP(RC[-1],'Worksheet #1'!C[-1]:C,2,FALSE)"
End With

HTH,
Bernie
MS Excel MVP


"RJSads" wrote in message
...
I have 2 columns in a worksheet #1
Column 1 Client Code
Cloumn 2 Client Type


In Worksheet #2 i have the same columns

If i populate Column 1 in worksheet #2 with a client Code how do i input the
Client Type based on the information in Worksheet #1

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
Create a formula by joining text and the value from a formula Jesper Audi Excel Worksheet Functions 3 February 25th 10 04:07 PM
How do I create a formula? Michelle F. Excel Discussion (Misc queries) 6 October 24th 06 10:43 PM
How do I create a formula by percentage within a formula? Miss Texas Excel Worksheet Functions 1 March 27th 06 04:51 AM
need to create a formula to create a timesheet but haven't a clue AHurd Excel Discussion (Misc queries) 7 August 22nd 05 12:04 PM
How do I create a formula Daniel Excel Programming 1 February 9th 05 10:25 PM


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