+ Reply to Thread
Results 1 to 14 of 14

Formula needs to be changed

  1. #1
    Forum Contributor
    Join Date
    09-03-2008
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2021
    Posts
    311

    Formula needs to be changed

    I have the following formula in google sheets, it is working, but not 100%, in Column G I will only add a value now and then, but when I do, it change all the column I entry before to the new value in column G, and it should not, it must keep them the same.

    =IF(G2<>"", ROUND(INDIRECT("G" & MAX(FILTER(ROW(G:G), G:G<>"", ROW(G:G)<=ROW()))) * INDIRECT("D" & ROW()), 2), I2)

    here s the link to google sheet

    https://docs.google.com/spreadsheets...it?usp=sharing

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Formula needs to be changed

    Where is the formula?

    What do you want this formula to do?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    09-03-2008
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2021
    Posts
    311

    Re: Formula needs to be changed

    Ok here is the formula again

    =IF(G2<>"", ROUND(INDIRECT("G" & MAX(FILTER(ROW(G:G), G:G<>"", ROW(G:G)<=ROW()))) * INDIRECT("D" & ROW()), 2), I2)

    What this formula must do is.
    in column G I will add one or two times per month data into it, but every day I will add data and then column I must multiply D with last entry of column G, and when I add new entry into column G it must not change column I aboverows, at the moment it change every thing in Column I to new value of Column G

    Herre is the correct file
    https://docs.google.com/spreadsheets...it?usp=sharing

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Formula needs to be changed

    To make sure that I understand the value in I4 should be 21.2 (=D4*G3), the value in I5 should be 26.5 (=D5*G3) and the value in I18 should be 22.61 (=D18*G17)
    If so then here is a formula that I feel will work if pasted into cell I3 and copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Contributor
    Join Date
    09-03-2008
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2021
    Posts
    311

    Re: Formula needs to be changed

    When drag doiwn gives thisd error Error
    Did not find value '2' in LOOKUP evaluation.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Formula needs to be changed

    Quote Originally Posted by hendrikbez View Post
    Ok here is the formula again
    Yes, I saw the formula in your first post. What cell is it in?

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Formula needs to be changed

    I can only guess that google sheets needs to have this treated as an array formula.
    Here is how it works in Excel.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    12-17-2013
    Location
    ON, Canada
    MS-Off Ver
    MS 365
    Posts
    171

    Re: Formula needs to be changed

    The formula @JeteMc gave you will work with a small modification. Delete everything in cell I3 and below. Add the following formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    .
    Does this give you the results you are looking for?

  9. #9
    Forum Contributor
    Join Date
    09-03-2008
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2021
    Posts
    311

    Re: Formula needs to be changed

    It is only working in excel I did try it in sheets, getting this error "Did not find value '2' in LOOKUP evaluation."
    as in my formlua I do not use row numbers, as i am using this as a private self app on my phone.

    row 17 is where I add the new units I just got, so if in "G" there is a entry, then I must be blank
    Last edited by hendrikbez; 06-09-2023 at 01:03 AM.

  10. #10
    Forum Contributor
    Join Date
    09-03-2008
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2021
    Posts
    311

    Re: Formula needs to be changed

    Did try to change it , but it givers me error "Array result was not expanded because it would overwrite data in I17." row 17 isd where I add thekoste in, and then i17 will be blank
    also i do not use rownumbers as i am using this in a private app on my phone.

    row 17 is where I add the new units I just got, so if in "G" there is a entry, then I must be blank
    Last edited by hendrikbez; 06-09-2023 at 01:02 AM.

  11. #11
    Forum Contributor
    Join Date
    12-17-2013
    Location
    ON, Canada
    MS-Off Ver
    MS 365
    Posts
    171

    Re: Formula needs to be changed

    The error message you are receiving is because you didn't delete everything in column I (I3:I) before entering the formula in I3.
    Column G is where you add the Koste and as far as I can see, has nothing to do with I17 being blank (R0.00).
    I'm not sure I understand exactly what you are after. I've attached a copy of your sheet here. If this is not what you want, please manually enter the results in column J.

  12. #12
    Forum Contributor
    Join Date
    09-03-2008
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2021
    Posts
    311

    Re: Formula needs to be changed

    Thank you, it is working, now i must just get it to work from my app

  13. #13
    Forum Contributor
    Join Date
    09-03-2008
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2021
    Posts
    311

    Re: Formula needs to be changed

    Quote Originally Posted by Flyboy65 View Post
    The error message you are receiving is because you didn't delete everything in column I (I3:I) before entering the formula in I3.
    Column G is where you add the Koste and as far as I can see, has nothing to do with I17 being blank (R0.00).
    I'm not sure I understand exactly what you are after. I've attached a copy of your sheet here. If this is not what you want, please manually enter the results in column J.
    after testing more, it chance all the data values in I
    [url]https://docs.google.com/spreadsheets/d/1AD9IEhbWArgAJ-bMVL2jBkevqtFMPLX1ii0MG7aby3w/edit?usp=sharing[/url

    If I add a new value in G, then it change all value in I above to new vlaue of G
    Last edited by hendrikbez; 06-09-2023 at 12:29 PM.

  14. #14
    Forum Contributor
    Join Date
    12-17-2013
    Location
    ON, Canada
    MS-Off Ver
    MS 365
    Posts
    171

    Re: Formula needs to be changed

    I'm sorry, but I'm having difficulty grasping the underlying logic of your spreadsheet. It appears that you have 3 different formulas in column D, possible missing entries for 1 May in columns E and F, inconsistent and missing formulas in column G, and your sum ranges in column H don't seen correct.
    Perhaps someone else may be able to help you. Good luck.

+ 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. Replies: 2
    Last Post: 12-13-2016, 10:35 AM
  2. Pivot table paths changed as I changed filename and folder
    By vascobmcastro in forum Excel General
    Replies: 0
    Last Post: 07-06-2015, 08:26 PM
  3. Replies: 7
    Last Post: 05-07-2014, 02:01 AM
  4. formula's changed after emailed
    By gocolonel77 in forum Excel General
    Replies: 1
    Last Post: 09-15-2012, 08:43 PM
  5. Hiighlight the changed cells which are changed with the linked wookbook?
    By lb1900 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-09-2012, 12:26 PM
  6. [SOLVED] Formula being changed
    By David Klassen in forum Excel General
    Replies: 4
    Last Post: 05-18-2006, 11:55 AM

Tags for this Thread

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