+ Reply to Thread
Results 1 to 2 of 2

How to change row number in function based on a value change

  1. #1
    Registered User
    Join Date
    02-15-2021
    Location
    Paris
    MS-Off Ver
    Office 365
    Posts
    3

    How to change row number in function based on a value change

    Hi,

    I'm trying to calculate the difference between 2 ranges (each range is a different tab). I have a table that generates values and I want my function to be able to change the row value based on the return value in the table.

    For example, on cell A1, I have the formula '=AVERAGE(Data1!A2:C2)-AVERAGE(Data2!A2:C2)'

    If one of the table values, cell "G10' returns the value '5', I want my formula to pick up the value and change the formula to

    '=AVERAGE(Data1!A5:C5)-AVERAGE(Data2!A5:C5)'

    Is this possible to achieve? thank you so much in advance and sorry for the poor English.

  2. #2
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,878

    Re: How to change row number in function based on a value change

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. As you are new, I will provide the link fir you this time: https://www.excelguru.ca/forums/show...a-value-change)
    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.

+ 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 Function to change based on the number of days per week
    By REPORTMAKER2020 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-30-2020, 05:45 AM
  2. Function to change Number
    By adelem in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-28-2017, 06:42 AM
  3. [SOLVED] Change all matching Value based on number change in Column Excel 2007
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 02-20-2014, 11:40 AM
  4. Match Column A's Project number to change based on greater number in new row
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-02-2013, 10:18 AM
  5. [SOLVED] change info in other cells when i change a number in a drop list?
    By macbr549 in forum Excel General
    Replies: 2
    Last Post: 09-10-2005, 10:05 PM
  6. [SOLVED] Is there a function to change a number to text?
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  7. [SOLVED] Is there a function to change a number to text?
    By psdunlavy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02: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