Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a row of 1836 consecutive dates in a column and I want a new column
with only every 7th row's date (the date beginning each week). How do I get Excel to do this? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Assuming the date are in Col A try this formula dragged down =INDEX(A:A,(ROW(A1)-1)*6+1) Now this assumes the data start in row 1. If it's another row then adjust the last 1 in the formula to that row -- Mike When competing hypotheses are otherwise equal, adopt the hypothesis that introduces the fewest assumptions while still sufficiently answering the question. "bondjel" wrote: I have a row of 1836 consecutive dates in a column and I want a new column with only every 7th row's date (the date beginning each week). How do I get Excel to do this? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Unless I did something wrong, I used this formula and it returned the 1st
date properly but did repeat by looping thru the whole column of dates. "Mike H" wrote: Hi, Assuming the date are in Col A try this formula dragged down =INDEX(A:A,(ROW(A1)-1)*6+1) Now this assumes the data start in row 1. If it's another row then adjust the last 1 in the formula to that row -- Mike When competing hypotheses are otherwise equal, adopt the hypothesis that introduces the fewest assumptions while still sufficiently answering the question. "bondjel" wrote: I have a row of 1836 consecutive dates in a column and I want a new column with only every 7th row's date (the date beginning each week). How do I get Excel to do this? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I should have said the formula did NOT repeat by looping thru the whole
column of dates "bondjel" wrote: Unless I did something wrong, I used this formula and it returned the 1st date properly but did repeat by looping thru the whole column of dates. "Mike H" wrote: Hi, Assuming the date are in Col A try this formula dragged down =INDEX(A:A,(ROW(A1)-1)*6+1) Now this assumes the data start in row 1. If it's another row then adjust the last 1 in the formula to that row -- Mike When competing hypotheses are otherwise equal, adopt the hypothesis that introduces the fewest assumptions while still sufficiently answering the question. "bondjel" wrote: I have a row of 1836 consecutive dates in a column and I want a new column with only every 7th row's date (the date beginning each week). How do I get Excel to do this? |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Put the formula in a cell and it will return the first value. You have to drag the formula down to get the next values -- Mike When competing hypotheses are otherwise equal, adopt the hypothesis that introduces the fewest assumptions while still sufficiently answering the question. "bondjel" wrote: I should have said the formula did NOT repeat by looping thru the whole column of dates "bondjel" wrote: Unless I did something wrong, I used this formula and it returned the 1st date properly but did repeat by looping thru the whole column of dates. "Mike H" wrote: Hi, Assuming the date are in Col A try this formula dragged down =INDEX(A:A,(ROW(A1)-1)*6+1) Now this assumes the data start in row 1. If it's another row then adjust the last 1 in the formula to that row -- Mike When competing hypotheses are otherwise equal, adopt the hypothesis that introduces the fewest assumptions while still sufficiently answering the question. "bondjel" wrote: I have a row of 1836 consecutive dates in a column and I want a new column with only every 7th row's date (the date beginning each week). How do I get Excel to do this? |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Mike,
Perhaps I should also have included that the 1st date I want it to return is in the 7th row not the 1st row. When I use your original formula: =INDEX(A:A,(ROW(A1)-1)*6+1) it yields the date in A1 and then the date in A7 (the first one I want) but then it returns the date in A13, then A19, etc. The dates after the second one (A7) are all just one row short of the the desired one. I think I've tried varying every variable in the formula and it keeps missing by just one under the desired number of rows or just one over. If I understood the VBA syntax I'd be able to solve it. What should I try next? Jim "Mike H" wrote: Hi, Put the formula in a cell and it will return the first value. You have to drag the formula down to get the next values -- Mike When competing hypotheses are otherwise equal, adopt the hypothesis that introduces the fewest assumptions while still sufficiently answering the question. "bondjel" wrote: I should have said the formula did NOT repeat by looping thru the whole column of dates "bondjel" wrote: Unless I did something wrong, I used this formula and it returned the 1st date properly but did repeat by looping thru the whole column of dates. "Mike H" wrote: Hi, Assuming the date are in Col A try this formula dragged down =INDEX(A:A,(ROW(A1)-1)*6+1) Now this assumes the data start in row 1. If it's another row then adjust the last 1 in the formula to that row -- Mike When competing hypotheses are otherwise equal, adopt the hypothesis that introduces the fewest assumptions while still sufficiently answering the question. "bondjel" wrote: I have a row of 1836 consecutive dates in a column and I want a new column with only every 7th row's date (the date beginning each week). How do I get Excel to do this? |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() I have formulas to do this and other related tasks at http://www.cpearson.com/Excel/EveryNth.aspx . Cordially, Chip Pearson Microsoft Most Valuable Professional, Excel, 1998 - 2010 Pearson Software Consulting, LLC www.cpearson.com On Thu, 18 Mar 2010 06:20:01 -0700, bondjel wrote: I have a row of 1836 consecutive dates in a column and I want a new column with only every 7th row's date (the date beginning each week). How do I get Excel to do this? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Returning multiple text data into 1 column from many column entrie | Excel Worksheet Functions | |||
LookUp Function with Two Column Search Returning One Column Value | Excel Worksheet Functions | |||
Returning a column name or number | Excel Worksheet Functions | |||
Highest value in column b returning column a | Excel Worksheet Functions | |||
Excel - returning column headers in a seperate column | Excel Discussion (Misc queries) |