简体   繁体   中英

Excel Formula for returning cell values

i'm looking for an excel formula that will return every 4th cell. For example if i have in column A the following:

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

I'm looking for a formula that will return every second cell, i would like my B column to show me

  • 1
  • 3
  • 5
  • 7
  • 9...

i tried using Offset with no success. Thank you Assaf

With data in column A , in B1 enter:

=INDEX(A:A,2*(ROWS($1:1)-1)+1,1)

and copy down.

在此处输入图片说明

For starters, I highly recommend Gary's approach as it is a non-volatile solution. I will be providing an offset solution to match your initial thought process. However I do not recommend using it if you have a lot of offset or other volatile functions in your workbook as they can cause things to slow down significantly after a certain number of them. Volatile formulas recalculate every time something on the worksheet changes, where a non volatile functions only recalculates when the ranges it refers to change.

=OFFSET(A1,2*(ROW(A1)-1)+1,0,1,1)

Place that where you want your data to start and copy down as far as required.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM