Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
tonydepo
 
Posts: n/a
Default Referencing a cell for a row


Ok. I am going to try to explain what I need.


A B C D
1 Month D
2
3
4 Current JAN FEB
5 Sales 300 200 300
6 Expenses 50 100 50


Ok, every month I need to have the current month column equal the
current month. Lets say Feb is my current month, so I need b5 and b6
to relate to the Feb column which is d5 and d6. The current formula in
b5 is =c5. Every month I need to go thru every cell in the B column and
change it to the next current month, for example, Lets say I just got
down doing the month of Jan. The cell in b5 is =c5. I am now doing
Feb so I have to go into B5 and change the field to =d5. As you can
see this can be time consuming if I have a number of categories. I was
thinking it has to be possible to just change b1 and it would relate to
that column. I am not sure how to do it though. So every month I
would just change b1 and it would relate to the correct month to use
for the Current column.

Any help would be great..

Thanks

Tony


--
tonydepo
------------------------------------------------------------------------
tonydepo's Profile: http://www.excelforum.com/member.php...o&userid=15306
View this thread: http://www.excelforum.com/showthread...hreadid=381912

  #2   Report Post  
bj
 
Posts: n/a
Default

one of the ways to do it would be to use the indirect function
somewhere AA1?
enter
=choose(Month(today(),"C","D","E" and so on)

in your current month column enter your equations as
=indirect($AA$1&row())

Needless to say there are multiple other ways to do it.
Vlookups, Index and match combinations etc.



"tonydepo" wrote:


Ok. I am going to try to explain what I need.


A B C D
1 Month D
2
3
4 Current JAN FEB
5 Sales 300 200 300
6 Expenses 50 100 50


Ok, every month I need to have the current month column equal the
current month. Lets say Feb is my current month, so I need b5 and b6
to relate to the Feb column which is d5 and d6. The current formula in
b5 is =c5. Every month I need to go thru every cell in the B column and
change it to the next current month, for example, Lets say I just got
down doing the month of Jan. The cell in b5 is =c5. I am now doing
Feb so I have to go into B5 and change the field to =d5. As you can
see this can be time consuming if I have a number of categories. I was
thinking it has to be possible to just change b1 and it would relate to
that column. I am not sure how to do it though. So every month I
would just change b1 and it would relate to the correct month to use
for the Current column.

Any help would be great..

Thanks

Tony


--
tonydepo
------------------------------------------------------------------------
tonydepo's Profile: http://www.excelforum.com/member.php...o&userid=15306
View this thread: http://www.excelforum.com/showthread...hreadid=381912


  #3   Report Post  
tonydepo
 
Posts: n/a
Default


Thanks BJ.. the second part worked fine. But the first part is giving
me an error with the formula. I can select the column by using the
appropriate letter and it changes my current column, but I cant make
the letter into a month name like you suggested during your first part
of the solution. I placed this formula in my cell

=choose(Month(today(),"C","D","E" and so on)


without the and so on part.

Thanks for your help


--
tonydepo
------------------------------------------------------------------------
tonydepo's Profile: http://www.excelforum.com/member.php...o&userid=15306
View this thread: http://www.excelforum.com/showthread...hreadid=381912

  #4   Report Post  
bj
 
Posts: n/a
Default

Thats because I left off a parenthesis
=choose(Month(today()),"C","D","E" and so on)

"tonydepo" wrote:


Thanks BJ.. the second part worked fine. But the first part is giving
me an error with the formula. I can select the column by using the
appropriate letter and it changes my current column, but I cant make
the letter into a month name like you suggested during your first part
of the solution. I placed this formula in my cell

=choose(Month(today(),"C","D","E" and so on)


without the and so on part.

Thanks for your help


--
tonydepo
------------------------------------------------------------------------
tonydepo's Profile: http://www.excelforum.com/member.php...o&userid=15306
View this thread: http://www.excelforum.com/showthread...hreadid=381912


  #5   Report Post  
sanskar_d
 
Posts: n/a
Default


tonydepo Wrote:
Ok. I am going to try to explain what I need.


A B C D
1 Month D
2
3
4 Current JAN FEB
5 Sales 300 200 300
6 Expenses 50 100 50


Ok, every month I need to have the current month column equal the
current month. Lets say Feb is my current month, so I need b5 and b6
to relate to the Feb column which is d5 and d6. The current formula in
b5 is =c5. Every month I need to go thru every cell in the B column and
change it to the next current month, for example, Lets say I just got
down doing the month of Jan. The cell in b5 is =c5. I am now doing
Feb so I have to go into B5 and change the field to =d5. As you can
see this can be time consuming if I have a number of categories. I was
thinking it has to be possible to just change b1 and it would relate to
that column. I am not sure how to do it though. So every month I
would just change b1 and it would relate to the correct month to use
for the Current column.

Any help would be great..

Thanks

Tony






Hi Tony,

I tried your example...
Unfortunately I am unable to understand the problem correctly...
But, I think that you could use "max" function & typing the first day
of the month to retrieve the data. (try using 1-feb-2005 & in format
cell type "mmm" in CategoryNumberCustomType).
Then use the formula.

Incase the problem is not solved you can mail me on


I would be glad to solve the problem.

regards,

sam


--
sanskar_d
------------------------------------------------------------------------
sanskar_d's Profile:
http://www.excelforum.com/member.php...o&userid=24217
View this thread: http://www.excelforum.com/showthread...hreadid=381912



  #6   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

tonydepo wrote:
Ok. I am going to try to explain what I need.


A B C D
1 Month D
2
3
4 Current JAN FEB
5 Sales 300 200 300
6 Expenses 50 100 50


Ok, every month I need to have the current month column equal the
current month. Lets say Feb is my current month, so I need b5 and b6
to relate to the Feb column which is d5 and d6. The current formula in
b5 is =c5. Every month I need to go thru every cell in the B column and
change it to the next current month, for example, Lets say I just got
down doing the month of Jan. The cell in b5 is =c5. I am now doing
Feb so I have to go into B5 and change the field to =d5. As you can
see this can be time consuming if I have a number of categories. I was
thinking it has to be possible to just change b1 and it would relate to
that column. I am not sure how to do it though. So every month I
would just change b1 and it would relate to the correct month to use
for the Current column.

Any help would be great..

Thanks

Tony



B5, copied down:

=LOOKUP(9.99999999999999E+307,C5:IV5)
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
Pasting Word table cell with paragraph markers into single Excel c Steve Excel Discussion (Misc queries) 1 June 16th 05 11:26 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


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