The tutorial explains the arcane twists of the OFFSET function and covers the most efficient ways to use OFFSET in Excel. Continue reading
by Svetlana Cheusheva, updated on
The tutorial explains the arcane twists of the OFFSET function and covers the most efficient ways to use OFFSET in Excel. Continue reading
Comments page 3. Total comments: 93
I am trying to create a sheet where the data is referenced from another sheet "Data_Sheet_name" and then creating multiple such coupled sheets using VBA. But every time I create a copy of the data sheet the referencing go haywire. So I want a formula which can dynamically be linked to the sheet based on the active sheet name.
Hi,
I have a spreadsheet with months 1,2,3 etc across the rows and a specific number of months to count backwards in a cell. For instance, I want to use the offset function to count back 6 columns from the reference cell. However, the 6 month count results in being either off the spreadsheet or into my column with all my field labels. This is causing the error either #value or #ref.. Unless I put the offset formula starting after column F (6 columns forward). How can I incorporate the offset function while not going off the sheet or into a cell that has text?
Thanks
Greg
Hey Greg, I'm having the same problem. Did you ever figure it out?
Hello, I have a problem which is not related to this tutorial. I am very new to excel, and I have learnt a lot from you. Thanks a lot. Suppose you have data in columns A1 to D20 and you want one formula to find minimum in every ROW and SUM the minimums. I have come across the following formulas in the internet, which I would kindly ask you to unravel me. I thank you in advance:
=SUM(MOD(LARGE(MAX(A1:D20+1)*ROW(A1:D20)+A1:D20,ROW(A1:D20)*COLUMNS(A1:D20)),MAX(A1:D20+1)))
=SUM(MOD(LARGE(100*ROW(A1:D20)+A1:D20,ROW(A1:D20)*COLUMNS(A1:D20)),100))
Excellent tutorials on Use of OFFSET Function.
Could you explain please how to use SUMIFS and Offset together in one formula. Thank you in advance.
hello there, I am trying to find the average of completion of TASKS CATEGORY based on the completion of individual TASKS.
I have 22 tasks in each table and a total of 3 main tasks category, and I am not able to return to average based on the product name.
The tab I am using has the same table repeating multiple times, one for each product I am working on. Each table has the same list of tasks to be performed with the following layout:
B1 is the name of the product (unique)
B4 to B25 is the list of tasks named p1....p22
c4 to c25 is the percentage value of progress for each task.
The table repeats itself underneath several times, what changes is the product name on b1, b27, b53, b79.. The tasks name (p1 to p22) are identical for each table in column b. I think the problem I am having is to return the average of the categories: tasks named p1 to p7 (cells b4 to b10) belong to the first category, tasks named p8 to p15 (cells b11 to b18) belong to the same category, and tasks named p16 to p22 (cells b19 to b25) belong to the third category. How do I get the average of the categories based on individual tasks completion % in column c based on the unique product name which is in b1, b27, b53, b79.. Thank you so much!!
Hi This one is a bit of a challenging one
I am not 100% sure if this uses the offset ruling or just the countif but i would really (really really really !!!) appreciate the advice.
My data set involves dates and times and I want to make a count of new events occurring in a separate column. A new event is classed as anytime the previous column has increased by 5 minutes.
Backgroud Info:
so the data is times and dates of pictures taken of animals and i have to make a count of every time an event happens.
An event is classified as any new animal that comes into view or if the same animal goes off camera and returns with over a 5 minute increase from the last time it was shown on camera.
So if it goes off camera and comes back under 5 minutes time(for example 4mins 31) i dont want to count it.
Further more, if another animal comes into view so 2 are in the shot i want to classify that as a new event also.
So for example :
date of shot time No.of animals in shot Event Counter
01.02.2016 10.50 1 1
01.02.2016 10.51 1
01.02.2016 10.51 1
01.02.2016 10.51 2 2
01.02.2016 10.51 1
01.02.2016 10.56 1 3
02.02.2016 16.51 2 4,5
02.02.2016 16.52 2
02.02.2016 16.58 1 6
02.02.2016 16.59 1
02.02.2016 17.05 1 ...formula???
so as you can see it is the end column i need the formula for to take into account date and time increase by 5 minute increases and an added count for if there is an extra animal in shot.
I have 15,000+ data points so if you can help me it would just be amazing.
The times only show shots of animals so theres no need to worry about an animal column.
fingers crossed you can help!Thanks
Respected Madam/Sir,
I found Tutorials on Using OFFSET function in Excel-formula examples, very useful and helped me to understand the offset function better.
Excellent detailed examples on offset.
Thanks a lot.
Regards,
P. G. Kerkar
hi,
i am facing an issue in excel how can i merge these two colums in one cell in top to down maner.
fr eg:- ram shayam amit
i want this in one cell like ram
shayam
please help its urgent!!!
Hi All,
Excellent examples and discussions on OFFSET.
How can you ensure that the cell format is the same when using OFFSET. For e.g., the OFFSET works, it returns the value of the cell to the appropriate new location, but some of my original cells are text hyperlinks (URLs). Thus, OFFSET only returns the text and it is not hyperlinked. Is this achievable?
Thank you.
Hi All,
Hopefully I am in the right spot for this question..
Basically I want to count the number of times a certain number appears in the last 20 results in a list - the list is updated often, so last 20 results changes.
RESULT NUMBER # APPEARANCES
3 1 ?
10
7
7
4
10
2
2
1
11
5
11
4
2
8
4
7
Appreciate any assistance you can give.
Hi,
Great summary on Offset, just one question that can I use offset in two different excel workbook?
Hi Xian,
Yes, it can. For example, this formula will return a value from cell B4 in Sheet1 of Book2:
=OFFSET([Book2]Sheet1!A1,3,1)
Hi,
A BIG thanks for this clarification. However, I need your help in the following issue: OFFSET function returns the value of a specific cell. How can I get the value next to that cell, and the one next to it, and the one next to it, etc. In other words, I need your help in the following: As I go to the right, I want to get the values of certain cells that go downwards.
Hope that is clear. I really appreciate your help.
I have a variable value in C6 which should be matched with the value in E6. C6 depends on the value in A2 not directly but indirectly.
I want the excel to auto calculate A2, for any given value in E6, such that C6=E6.
good article!
Thank you for your help. I can now view well the function of Offset as compared to Index and Vlookup.
I'm a self trainee with good progress
Hi,
My challenge is to retain the same format ( including color of the cell value) when I do a offset. Could anyone help me with this. Thanks
I ran into an interesting problem with the offset function:
I have a table with string data containing newlines. For example:
this
is
my
data
the above would all be in 1 cell, but with 1 word per line and a new line character after each word (by pressing alt+enter). This works great, but if I use the offset function and it selects that cell, I get "thisismydata" with no newline characters in it.
Any tips?
This post is very insightful indeed. I have learned a lot. Many thanks!
Also, kindly help me with a simple formula on this:
I have an excel data that I use to monitor attendance at meetings. The columns labelled YES/NO tell whether the meeting was held or not. I want to monitor attendance in the last N meetings held (eg.last 2 or 3 columns with a "YES"). It should not count the cell when the column heading is "NO".
That is: if I enter 2 in cell H2 it should return (2 in H3 for Mr. A and 1 in H4 for Mr. B etc). if I enter 3 in H2 it should return (3 in H3 for Mr. A and 2 in H4 for Mr. B etc)
A B C D E F G H
1 Jan15 Feb-15 Mar-15 May-15 Jun-15 Jul-15 Last N meetings
2 Name YES YES NO YES NO YES
3 Mr.A 1 1 1 1
4 Mr.B 1 1 0 1
5 Mr.C 0 1 1 1
6 Mr.D 0 1 1 1
7 Mr.E 1 1 0 1
Thank you
Hello, Prince,
Sorry, it's difficult to create a formula according to your example. Could you sand us a small sample table in Excel to support@ablebits.com?
Thanks for this email. I need your help.
I want a formula to search for certain strings located in a column in one sheet from a column in another sheet and replace the content of the column in the second sheet with that of the string from the first sheet if found.
i.e. if 'xyz' in cell A1 of sheet test if found in 'sjkhgjjhkxyzrewqed' of cell b3 in sheet test2 replace 'sjkhgjjhkxyzrewqed' with 'xyz'.
Thanks to your expected help.
Regards
hi, i understand that you want to replace sheet2 b3 cell should be enter as sheet1 a1 value
in that case you can use these formulas in sheet2 b3 cell
those are
1) =xyz!A1
2)=indirect("xyz!A1")
here "xyz" means sheet1 name
Hope you find the solution
or else please let me know
Hi
I have to 2 excel sheet.
Sheet A :The value for average of differnt columns in different cells but in same row G41.(average of column c in c41;average of column G in G41;average of column J in J41 and so on )set repeats after every 6 columns.
Now in sheet "B" I want all the results of sheet A in column H one after other .(I cant drag the formula as the range is not continues). Please help
Hi!, I want to thank Oyu in advance.
I use this function to count the number of zeros after the last non zero data. It works perfect, except when the first cell in the row is zero.
COLUMNS(D24:W24)-MATCH(2;1/(D24:W240))-COUNTBLANK (D24:W24)
I want the formula to start counting zeros from the first cell if it is zero.
Thanks
=SUM(OFFSET(H4,0,0,1,-$L$3))
Hello, Ahmed,
For us to be able to assist you better, please send us a sample table with your data in Excel to support@ablebits.com.
Hey, I just wanted to say that I really appreciate you putting this together. I'm sure it involved quite a bit of work!
Thanks so muchh!