Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
RPW RPW is offline
external usenet poster
 
Posts: 52
Default choosing cells from another sheet

The best way I know of to ask is to give an example. I have two sheets, the
first sheet has two columns, column A has item numbers, column B has item
descriptions. On second sheet, I want to create a drop down box so when I
type in or choose an item description (that matches a description from sheet
one), that item description populates column B of sheet two, AND, the
matching item number is automatically put into column A of sheet two..
TIA
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default choosing cells from another sheet

"RPW" wrote:
The best way I know of to ask is to give an example. I have two sheets, the
first sheet has two columns, column A has item numbers, column B has item
descriptions. On second sheet, I want to create a drop down box so when I
type in or choose an item description (that matches a description from sheet
one), that item description populates column B of sheet two, AND, the
matching item number is automatically put into column A of sheet two..


One way ..

A sample construct is available at:
http://www.savefile.com/files/3288974
Dynamic range DV n Index n Match.xls

Assume source data is in Sheet1, cols A & B, data from row 2 down
Item# in col A, Item Descriptions in col B

In Sheet2,

Create a dynamic range for use in the DV droplist for col B
Click Insert Name Define
Names in workbook: ItemDesc
Refers to: =OFFSET(Sheet1!$B$2,,,COUNTA(Sheet1!$B:$B))
Click OK

Set up the DV in col B:
Select B2:B10 (say)
Click Data Validation
Allow: List
Source: =ItemDesc
Click OK

Then just place in A2:
=IF(B2="","",INDEX(Sheet1!A:A,MATCH(B2,Sheet1!B:B, 0)))
Copy down to A10

Col A will return the Item# for the Item description selected in col B
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default choosing cells from another sheet

Correction to line:
Refers to: =OFFSET(Sheet1!$B$2,,,COUNTA(Sheet1!$B:$B))


should read as:
Refers to: =OFFSET(Sheet1!$B$2,,,COUNTA(Sheet1!$B:$B)-1)

(Sample corrected as well)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
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 do i fill down a series of linked cells barry Excel Discussion (Misc queries) 7 July 5th 06 10:50 PM
Replacing sheet reference in multiple cells... neilcarden Excel Worksheet Functions 3 June 23rd 06 05:00 PM
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 04:57 PM
Formula to copy rng of cells where (value is met) to anther sheet Exit Advantage Excel Worksheet Functions 3 November 12th 05 02:59 AM
Entering Data in multiple cells on one sheet & having it auto upda haynblend Excel Worksheet Functions 2 March 27th 05 12:41 AM


All times are GMT +1. The time now is 01:59 PM.

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"