#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Susan
 
Posts: n/a
Default lookup function

In a spreadsheet, I am trying to populate a cell with the next month. For
example, if cell B1 = Jan., I want C1 to become February (and so on depending
upon the current month.

Any hints/help. I was using the lookup function, but it doesn't always
return the correct month.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SteveG
 
Posts: n/a
Default lookup function


Not sure what you mean by "and so on depending on current month". I
assume that B1 has the current month and you want C1 to automatically
update to the next month based on the value in B1. Use the EDATE
function in C1.

=EDATE(B1,1)

If you are looking for a function to return todays month in B1 so each
month it changes then you could use =NOW() or =TODAY() in B1. Format
as mmmm to see the date in text (January, February etc...).

Then use the EDATE in C1. B1 and C1 will update with the change of
each month using these. You can copy the EDATE function across row 1
for the desired number of months.

I believe you need to install the Analysis Toolpak to use the EDATE
function. To do that, go to the Tools Menu, Add-ins, click on the
Analysis Toolpak check box and click on OK. This will run the
install.

Does that help?

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=534170

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default lookup function

Just put Jan in a cell, then move the cursor to the cell bottom-right where
it changes to a black cross, then drag across/down to populate the other
cells.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Susan" wrote in message
...
In a spreadsheet, I am trying to populate a cell with the next month. For
example, if cell B1 = Jan., I want C1 to become February (and so on

depending
upon the current month.

Any hints/help. I was using the lookup function, but it doesn't always
return the correct month.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default lookup function

Do you want current month in A1 and coming month in B1 and so on? In A1 put

=TEXT(TODAY(),"mmm")

in B1

=TEXT(DATE(YEAR(TODAY()),MONTH(TODAY())+COLUMNS($A $1:A1),1),"mmm")

copy across


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com


"Susan" wrote in message
...
In a spreadsheet, I am trying to populate a cell with the next month. For
example, if cell B1 = Jan., I want C1 to become February (and so on
depending
upon the current month.

Any hints/help. I was using the lookup function, but it doesn't always
return the correct month.



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
Lookup Function help marlea Excel Discussion (Misc queries) 2 August 23rd 05 07:30 PM
Lookup Function Problems FFW Excel Worksheet Functions 2 August 21st 05 04:22 PM
Complicated lookup function chrisrowe_cr Excel Worksheet Functions 4 July 19th 05 05:52 PM
lookup function 1 Colboyfx Excel Worksheet Functions 4 July 15th 05 09:15 AM
How do I use 3 cells to create the string for a lookup function? Bencomo Excel Worksheet Functions 1 May 15th 05 07:17 AM


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