Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
lemskibar
 
Posts: n/a
Default how do i add in numbers automatically based on adjacent cells cont

I'm trying to automatically enter data into multiple cells based on one cells
data.

For instance if a cell in column A = 1 then the adjacent cells in columns B,
C and D will all have specific values which will be true for a value of 1 in
column A.

If the value in the cell in column A = 2 then the adjacent cells in columns
B, C and D will have another set of specific values which will be true for a
value of 2 in column A and so on.

I think lookup tables is possibly the answer but the help isn't much good
and I am struggling!


  #2   Report Post  
Posted to microsoft.public.excel.misc
RagDyeR
 
Posts: n/a
Default how do i add in numbers automatically based on adjacent cells cont

In an out--the-way location, create a datalist that contains your values.

Say W1 to W25 contain the numbers 1 to 25.

X1 to Z25 contain the data pertaining to the Column W values.

In B1 enter this formula:
=VLOOKUP(A1,$W$1:$Z$25,2,0)

In C1 enter this formula:
=VLOOKUP(A1,$W$1:$Z$25,3,0)

In D1 enter this formula:
=VLOOKUP(A1,$W$1:$Z$25,4,0)

Does this do what you're looking for?


--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"lemskibar" wrote in message
...
I'm trying to automatically enter data into multiple cells based on one
cells
data.

For instance if a cell in column A = 1 then the adjacent cells in columns B,
C and D will all have specific values which will be true for a value of 1 in
column A.

If the value in the cell in column A = 2 then the adjacent cells in columns
B, C and D will have another set of specific values which will be true for a
value of 2 in column A and so on.

I think lookup tables is possibly the answer but the help isn't much good
and I am struggling!



  #3   Report Post  
Posted to microsoft.public.excel.misc
pinmaster
 
Posts: n/a
Default how do i add in numbers automatically based on adjacent cells cont


Find an out of the way part of your worksheet, in the first column put
1,2,3 and so on, then input the corresponding values in the other
columns, once you have done that you can use a VLOOKUP formula to
retrieve your data

=VLOOKUP($A1,$N$1:$O$20, column(B:B),0)
copied down and across

A1 being the value to lookup
and
$N$1:$O$20 being the range where you put your data

I suggest inserting a blank worksheet, creating your table then hitting
CTRL+F3 and giving your table a name....say table1, you can then use
that name in your formula, you can then HIDE your worksheet.

=VLOOKUP($A1,table1,COLUMN(B:B),0)

HTH
JG


--
pinmaster
------------------------------------------------------------------------
pinmaster's Profile: http://www.excelforum.com/member.php...fo&userid=6261
View this thread: http://www.excelforum.com/showthread...hreadid=495543

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
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 04:57 PM
Apply cell shading based on adjacent cells in EXCEL garywr Excel Worksheet Functions 3 September 10th 05 01:35 PM
calculate numbers based on font color? Costa Excel Worksheet Functions 1 September 5th 05 03:59 PM
I want to format a cell based on an adjacent cells value Cumbo Excel Discussion (Misc queries) 1 December 13th 04 11:52 AM
Protected cells -automatically format to a different color Fred Evans Excel Discussion (Misc queries) 9 December 3rd 04 12:59 PM


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