+ Reply to Thread
Results 1 to 9 of 9

OFFSET: stay in range

  1. #1
    Registered User
    Join Date
    07-16-2021
    Location
    Vienna, Austria
    MS-Off Ver
    Microsoft Professional Plus 2019
    Posts
    4

    Red face OFFSET: stay in range

    Hello,


    I need a chart which predicts when a product is ready for harvest.

    production date + amount of grow days = Production output date

    For this I use the OFFSET function

    The issue is, as I have to use a negative number to reference the growth date in the past, I get results out of the range C3:H5.
    Screenshot_1.png


    How do I limit the OFFSET function to the range C3:H5?


    Any help is greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,141

    Re: OFFSET: stay in range

    Rather than showing the results of a formua that does not work... please tell us WHAT you expect to see and WHERE you expect to see it...
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    07-16-2021
    Location
    Vienna, Austria
    MS-Off Ver
    Microsoft Professional Plus 2019
    Posts
    4

    Re: OFFSET: stay in range

    This is how it should like:
    Attachment 740621

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,434

    Re: OFFSET: stay in range

    Please attach a WORKBOOK, not a picture of one. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: OFFSET: stay in range

    Im with Glenn, but what are you wanting to achieve. Mock up the results you desire and Im sure we can give you a solution

    perhaps =IF(COLUMN()-$B3>2,OFFSET(E3,0,-$B3),"")

  6. #6
    Registered User
    Join Date
    07-16-2021
    Location
    Vienna, Austria
    MS-Off Ver
    Microsoft Professional Plus 2019
    Posts
    4

    Re: OFFSET: stay in range

    I want to reference to cells using the offset function, EXCEPT when the referenced cell is in column A,B, or outside the Workbook.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: OFFSET: stay in range

    isn't that what I gave you?
    =IF(COLUMN()-$B3>2,OFFSET(E3,0,-$B3),"")

    if you want 0 and not blank
    =IF(COLUMN()-$B3>2,OFFSET(E3,0,-$B3),0)

  8. #8
    Registered User
    Join Date
    07-16-2021
    Location
    Vienna, Austria
    MS-Off Ver
    Microsoft Professional Plus 2019
    Posts
    4

    Re: OFFSET: stay in range

    Yes thank you, I had to adjust it to
    =IF(COLUMN()-$B3>2,OFFSET(C3,0,-$B3),"")
    (in CELL C9)

    Now it works!
    Thank you very much!

  9. #9
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: OFFSET: stay in range

    E9 was the cell you had highlighted in the screenshot saying it was not working hence the formula I gave you was for. I f you were starting in column C it was the formula you adjusted it to. although if you look in column E the formula will be what I gave you. it could have been copied down and left and right to give the results you have

    Glad it worked

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Offset Alters Entire Range, Need To Offset A Single Cell
    By Genus Max in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-26-2020, 10:47 AM
  2. [SOLVED] Help! - Copy Range (Sheet1,A10:F50), Paste Range (Sheet 2,A1:F41), Offset Range & Repeat
    By cjtimmer in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-30-2015, 06:27 PM
  3. [SOLVED] Need cell range to stay the same
    By HeatherBelle79 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-16-2015, 08:12 AM
  4. Number should stay in a certain range
    By BOB202 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-24-2014, 05:12 AM
  5. [SOLVED] Define new range names based on existing range name offset 1 column to right
    By jprlimey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-03-2014, 07:53 PM
  6. Need Max(Cell Range) to stay the same
    By miekewl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-28-2011, 03:04 AM
  7. Replies: 2
    Last Post: 08-22-2005, 01:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1