Date selection in Excel - excel

I have a cell that has a date for my business "week ending". I would like to program three other cells to change when I change the data in cell 1.
Example:
Week Ending. 08/21/15
Wk 2. 08/27/15
Wk.3. 09/3/15
Wk 4. 09/10/15
When the week ending date is changed, the other three weeks automatically change in increments of 7 days.
Anyone know of this is possible? A million thank yous in advance!

Just use the 'Add' formula in rest of the 3 cells e.g. use the following configuration in your cells.
Cell C1 = 08/21/15
Cell C2 = C1 + 6
Cell C3 = C2 + 6
Cell C4 = C3 + 6
in this way, when you change value in C1, value of other 3 cells C2, C3 and C4 will change accordingly.

Related

How would I make a column of numbers in excel using Start number and End number in Excel?

For Example, If A2 was 5 and B2 was 30 Could I make a column of numbers in the C column starting with 5 and ending 30. Like C1=5, C2=6,C3=7 and so on, until is reaches 30.
You can do something like this:
In C1 put =$A$2
In C2 put =IF(C1 < $B$2, C1 + 1, "")
Then copy the content of C2 to C3, C4, C5, etc. to as many cells as needed. The "counting" will stop when reaching the value in B2.
In ExcelO365, you could use:
Formula in C1:
=SEQUENCE(B2-A2+1,,A2)

Excel Formula to return number based on data within another cell

We export a CSV file to excel - If Cell B4 contains a number, I want it to put 1 into cell A4, if B4 doesn't contain a number it should leave A4 Blank. If cell B5 contains a number it should return the next number in the sequence to Cell A5 (if A4 is 1 the A5 should be 2) but if there is not a number in B5 then A5 should be blank.
There will be blank lines on the spreadsheet but these will change with each file, so i need it to use the next number in the sequence even if the cell above is blank for example
A5 = 1
A6 = 2
A7 =(Blank Cell)
A8 = 3
A9 =(Blank Cell)
A10 =(Blank Cell)
A11 = 4
I've tried (ISNUMBER) but this only returns "True" or "False"
The difficulty I'm having is with the blank lines, I don't want it to recognize a blank line then start at 1 again.
this might work:
=IF(ISNUMBER(A5),ROW()-4-COUNTIF($A$5:A5,""),"")
This takes the current rownumber (ROW()) minus the rows before the list (4) minus the empty cells in the list (COUNTIF) up till the current row.

Would like to combine two columns of data, one has blank rows, other is continuous

I have two columns of data in excel: A & B. The first column (A) has zeros and blank cells. The second column (B) has numbers. I would like to make a third column (C) that enters the numbers from column two sequentially into the blank spaces from the first column.
I was thinking i could use: =if(A1="",B1, A1) but that obviously will be wrong if the first blank is at A3 since B3 will be entered.
I think i need a command to move down the B1 column only if it gets entered into A.
A B C
1. 0 24 0
2. 0 13 0
3. 41 24
4. 62 13
5. 0 6 0
This is an interesting question.
Try this....and please don't forget to accept the solution if it works for you. I am trying to increase my reputation here since I am new to StackOverflow. Thanks!
Assuming Excel Sheet looks like following:
Cell A1 = 0 Cell B1 = 24
Cell A2 = 0 Cell B2 = 13
Cell A3 = Cell B3 = 41
Cell A4 = Cell B4 = 62
Cell A5 = 0 Cell B5 = 6
Type this in cell C1:
=IF(A1="",INDEX($B$1:$B$5,SUM(($A$1:A1="")*(1))),"")
make sure to push control-shift-enter when submitting the formula in cell C1 since it is an array formula. You should then be able to copy it (control-c) and paste it down the remaining rows (control-v)

How to create a number as a decimal in excel

I have two numbers for example
24,000 and 46,123
What I want is to create the number 24,000.46123 from this.
How can this be done in Excel? I wont know how long the second number is so I can't just divide by 100000 for example
24,000 + (46123/100000)
With values in A1 and B1 in C1 enter:
=A1+B1/(10^LEN(B1))
and set the format:
Try this in the cells of your spreadsheet:
Set cell A1 to 24000, set cell B1 to 46123, finally in cell c1 set =value(concatenate(a1,".",b1)

if A1 = 1 then cell value =A1, if it is 2 then i wanted the formula to change to A2,

I need some help here with my work.
I am doing pure formulas in excel and won't be using anything else.
sorry to confuse u guys, maybe I'll change my question a tad more clearer to what I need.
I wanted to increment my cell references in the formula every time a day is added.
let's say today was Feb 1, 2014. I'd set A1 = 1, now when I enter Feb 2, 2014 on my date entry cell. A1 should change to 2.
I need the proper formula for this statement as follows, If A1 = 1, then B2 = H2, B3 = H3, now when A2 changes to 2 after the date change, my formula should become B2 = H3, B3 = H4, I can't get this part.
Many thanks!!
if A1 = 1 then cell value =A1, if it is 2 then i wanted the formula to change to A2
if today's date is the 1st day then my cell value in A1 = 1
What you want is slightly confusing if I consider the above two statements. Is this what you want?
=INDIRECT("A" & DAY(TODAY()))
This will give you A12's value for 12th Jan 2014 (Since it is the 12th day)
Followup from comments.
Let's say i take my data to be displayed in A3 from B3, my formula will be A3 = B3 in simple terms, but the next day I will need A3 to take data from B4 instead as B3 will be my past data already, how will I increment the formula to change to A3 = B4?
So my understanding was correct :) Ok Let's say your current formula in A3 is =B3 and you are storing the date say in cell D1 then change the formula in cell A3 to
=INDIRECT("B" & DAY(D1))
So if you input say 04/01/2014 (i.e 4th Jan 2014) in cell D1 then the cell A3 formula evaluates to
=INDIRECT("B" & DAY(D1))
=INDIRECT("B" & DAY(04/01/2014))
=INDIRECT("B" & 4)
=INDIRECT("B4") '<~~~
Define a named range such as DateEntryCell for the cell where you enter the date. In A1 you need a formula to return the day of the date entered in your DateEntryCell range.
=DAY(DateEntryCell)
In 'B2' enter
=INDIRECT("H" & $A$1 + ROW()-1)
The absolute reference to $A$1 means you can copy this formula down to B3. Adding ROW()-1 incorporates your offset between row 1 where you have =DAY(DateEntryCell) and B2, B3 etc.

Resources