Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default If/Then Matrix? Can Excel do this?

Hey guys- got a semi-easy one here...

I have a range of dates that I need a specific code associated with each
year. For example- if the year is 1982, the code to use in this cell is
..9445. If the year is 1993, the code is .9669, and so on. This will run in a
macro eventually. How/where do I write this, and, can Excel do something
like this? IE- can Excel 'store' a 'matrix' of codes for each year? I hope
this is making sense.
Bbtw, it doesnt HAVE TO work in a macro- it'd be pretty cool if it could
actually work automatically as soon as the date was entered into a specific
cell, but a macro would work too... THANKS!
Thanks!
D




  #2   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default If/Then Matrix? Can Excel do this?

One way:

Assume your matrix of dates and codes are in Sheet2, Cells A1:Bx, with
the dates in column A and codes in column B. Back in Sheet 1, assume the
entry cell is A1, then put this in B1:

=IF(A1<"",VLOOKUP(A1,Sheet2!A:B,2,FALSE))

In article <dajPc.21318$8G6.8418@fed1read04, "D" wrote:

I have a range of dates that I need a specific code associated with each
year. For example- if the year is 1982, the code to use in this cell is
.9445. If the year is 1993, the code is .9669, and so on. This will run in a
macro eventually. How/where do I write this, and, can Excel do something
like this? IE- can Excel 'store' a 'matrix' of codes for each year? I hope
this is making sense.
Bbtw, it doesnt HAVE TO work in a macro- it'd be pretty cool if it could
actually work automatically as soon as the date was entered into a specific
cell, but a macro would work too... THANKS!

  #3   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default If/Then Matrix? Can Excel do this?

This did it! THANK YOU!!!
D

"JE McGimpsey" wrote in message
...
One way:

Assume your matrix of dates and codes are in Sheet2, Cells A1:Bx, with
the dates in column A and codes in column B. Back in Sheet 1, assume the
entry cell is A1, then put this in B1:

=IF(A1<"",VLOOKUP(A1,Sheet2!A:B,2,FALSE))

In article <dajPc.21318$8G6.8418@fed1read04, "D" wrote:

I have a range of dates that I need a specific code associated with each
year. For example- if the year is 1982, the code to use in this cell is
.9445. If the year is 1993, the code is .9669, and so on. This will run

in a
macro eventually. How/where do I write this, and, can Excel do something
like this? IE- can Excel 'store' a 'matrix' of codes for each year? I

hope
this is making sense.
Bbtw, it doesnt HAVE TO work in a macro- it'd be pretty cool if it could
actually work automatically as soon as the date was entered into a

specific
cell, but a macro would work too... 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 can I transpose nXm matrix to mXn Matrix MIHir Excel Worksheet Functions 2 August 9th 08 11:44 AM
Expanded Matrix in Excel Sal[_2_] Excel Discussion (Misc queries) 0 August 12th 07 10:16 PM
Excel Matrix lookup Matt Excel Discussion (Misc queries) 3 January 19th 07 03:05 AM
excel matrix Moneywiz2004 Excel Worksheet Functions 3 November 16th 04 07:16 PM
solving a matrix in Excel Jon[_17_] Excel Programming 6 July 7th 04 07:45 AM


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