Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

If today is january then return cell B1 in C1

Hi Everybody,


Having difficulties to find out the right way to do the following: I'd like to tell cell C1 that if today is January then fill C1 with B1, if it's february then B4 etc...


A Date B C
101/01/1523if today is january then B1, if today is february then B4, if it's march then b7 and so on
202/01/15
303/01/15
401/02/1544
502/02/15
603/02/15
7so forth...



How should I do it?


Thanks in advance

MacBook Pro with Retina display, OS X Yosemite (10.10.2)

Posted on Mar 6, 2015 12:04 PM

Reply
Question marked as Best reply

Posted on Mar 6, 2015 12:33 PM

This should do what you want:


User uploaded file



In cell C1:


=OFFSET($B$1,(MONTH(TODAY())−1)×3,0)


This assumes the number of blank cells between values is always 2.


SG

5 replies

Mar 6, 2015 1:28 PM in response to SGIII

Ok,

In the table below I have cell C36 that counts how many days I worked on January (Every month of 2015 has a separate table but in the same sheet):

User uploaded file


In another table (in a different sheet) I have to put in cell D2 the total days I worked the actual month:

User uploaded file


So, If today is January then D2 will be C36 (from January's table), but if today is February then D2 will be cell C36 (from February's table) and so on...

Hope is clearer 😐

Mar 6, 2015 1:53 PM in response to mfigari

You could try something like this:


User uploaded file




The formula in D2 of the Summary table: =INDIRECT(MONTH(TODAY())&"::C7")


Each table would be named for the number of the month: January named '1', February '2' , etc. (Be sure not to use the same table name twice.)


You would replace the C7 in the formula with C36 (this assumes you have put the relevant number in cell C36 of each table).


SG

If today is january then return cell B1 in C1

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.