Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Custermd
 
Posts: n/a
Default Variable equations help please


Could someone help me with this? On my XL 2003 wb I have two of several
sheets. On one of the sheets (C"Monthly inv") it has my facilities
monthly inventory. On the other sheet (Monthly order req forms) it has
a series of columns that contain formulas specific to the current date
and the date that the data on (C"Monthly inv") was entered.
So what I am really trying to ask is there a way in xl for a formula in
(Monthly order req forms) to search and find a specific column {in
reference to the current date} in (C"Monthly inv") and change all the
equations in the (Monthly order req forms) W.S.?

Example, say the date is 6Feb06 a formula in W.S. (Monthly order req
forms) would search row c12:n13 in W.S. (C"Monthly inv") and find that
the date corresponds to column J. Thus all the equations in the W.S. or
column would change its letter variable to j.


--
Custermd
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dav
 
Posts: n/a
Default Variable equations help please


Yes although it is not entirely clear from your post what you require.
You can reach an answer using the match and Offset functions

Match(value,array,0) finds the position of an exact match

eg if A1:d1 contain 10 20 30 40 and a2 contains 30

match(a2,a1:d1,0) returns 3

Offset(cell,rows,columns)

Returns the cell offset by that many rows and columns!
so Offset(b3,0,3) returns e3

as in the above example offset(b3,0,match(a2,a1:d1,0))

I hope that gives you something to go on, a similar function to the
above needs to be incorportated in your formula. Although I have used
numbers it will work with dates

Regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
View this thread: http://www.excelforum.com/showthread...hreadid=518106

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Custermd
 
Posts: n/a
Default Variable equations help please


Dav Wrote:
Yes although it is not entirely clear from your post what you require.
You can reach an answer using the match and Offset functions

Match(value,array,0) finds the position of an exact match

eg if A1:d1 contain 10 20 30 40 and a2 contains 30

match(a2,a1:d1,0) returns 3

Offset(cell,rows,columns)

Returns the cell offset by that many rows and columns!
so Offset(b3,0,3) returns e3

as in the above example offset(b3,0,match(a2,a1:d1,0))

I hope that gives you something to go on, a similar function to the
above needs to be incorportated in your formula. Although I have used
numbers it will work with dates

Regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile:
http://www.excelforum.com/member.php...o&userid=27107
View this thread:
http://www.excelforum.com/showthread...hreadid=518106


Let me try to be a little clearer.
I have two rows let’s say 3 and 4. In row 3 I have the beginning date
of each month. In row 4 I have the end date of each month.

I.E.
------------e-------------------f
3---------Jan 1 06---------Feb. 1 06
4---------Jan 31 06--------Feb. 28 06

I am looking for a formula that will return a value of the column.

If today’s date is Feb. 8 06, the formula will search the array and
find that today’s date falls between 3f and 4f and return the value
“F”.




--
Custermd
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dav
 
Posts: n/a
Default Variable equations help please


match(today(),e4:f4,1) Will return the column number that the match
occurs in

if your formula was wanting to update the cell eg e4 to f4 use
offset(d4,0,match(today(),e4:f4,1))

In the above it match the value that is equal to or lower than todays
date, the 4th row specifies the end of the month so this should work,
assuming jan 1 06 is recognised as a date


This adds the column the match occurs to the cell d4 so if the match
statement returns 2, the refrerence is now f4, 1 it is e4

Regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
View this thread: http://www.excelforum.com/showthread...hreadid=518106

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
Adding "fixed" data to variable length data [email protected] Excel Worksheet Functions 3 February 16th 06 08:59 PM
variable height variable width stacked bar charts ambthiru Charts and Charting in Excel 3 January 18th 06 11:41 PM
object variable or with block variable not set Diego Excel Discussion (Misc queries) 1 August 9th 05 02:46 PM
why is it saying sheetcnt is "variable not defined" how to do a global variable to share over multiple functions in vba for excel? Daniel Excel Worksheet Functions 1 July 9th 05 03:05 AM
I Need VBA Assistance for global variable question Brent E Excel Discussion (Misc queries) 1 March 1st 05 08:46 PM


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