Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do i grab a table value to fill a cell?

I need to change two columns on a spread sheet to match the table for vendor
codes and ledger codes. In other words, on the spreadsheet it shows the code
and I want the actual name to appear from a sheet that lists all the codes
with the corresponding name.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default How do i grab a table value to fill a cell?

Look at VLOOKUP function.

Assuming your lookup table has the code in Col A and Names in Col B on
Sheet2 rows 2 to 100 then

=Vlookup(<vendorcode,Sheet2!a2:b100,2,false)

where <vendorcode is the code in your first sheet; this can be a cell e.g
A1 with formula in B1:

=Vlookup(A1,Sheet2!a2:b100,2,false)

This formula will need to be a new column in your first sheet. Copy down as
required.

If you want to replace the code with the name i.e in same cell, will need to
use VBA.

HTH

"gail1166" wrote:

I need to change two columns on a spread sheet to match the table for vendor
codes and ledger codes. In other words, on the spreadsheet it shows the code
and I want the actual name to appear from a sheet that lists all the codes
with the corresponding name.

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
remove fill in text from a cell from an unpopulated fill-in cell Deb[_3_] Excel Worksheet Functions 1 September 22nd 09 03:28 PM
grab cell text from multi-tab workbook, show text in another workb pfa Excel Worksheet Functions 16 August 10th 07 08:50 PM
Grab name of folder scantor145[_13_] Excel Programming 1 July 1st 05 01:17 PM
auto fill data into a cell from a lookup table Tetradpoint Excel Discussion (Misc queries) 1 April 19th 05 04:46 PM
Software of scripting to grab data from MS word file and fill in Excel fields? Joe Blo Excel Programming 2 October 6th 04 09:54 PM


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