+ Reply to Thread
Results 1 to 24 of 24

Formulas does not work in appsheet , but in thunkable x

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

    Formulas does not work in appsheet , but in thunkable x

    I am trying to use the following formulas in appsheet that will be used in googlesheet, but it gives this errors (it works in thubkable x)
    How can I change it to work in appsheet

    Column 'Beskikbaar' in Table 'Eenhede_Schema' of Column Type 'Decimal' has an invalid expression in the Formula field.'=INDIRECT("R"&ROW()-1&"C3",FALSE)+INDIRECT("R"&ROW()&"C6",FALSE)'. Unable to find function 'ROW', did you mean 'NOW'?

    Column 'Gebruik' in Table 'Eenhede_Schema' of Column Type 'Decimal' has an invalid expression in the Formula field.'=INDIRECT("C"&ROW()-1)-INDIRECT("C"&ROW())'. Unable to find function 'ROW', did you mean 'NOW'?

    Column 'Koste' in Table 'Eenhede_Schema' of Column Type 'Decimal' has an invalid expression in the Formula field.'=IFERROR(INDIRECT("R"&ROW()&"C"&COLUMN()-2,FALSE)/INDIRECT("R"&ROW()&"C"&COLUMN()-1,FALSE),"Error")'. Unable to find function 'ROW', did you mean 'NOW'?

    Column 'PerDag' in Table 'Eenhede_Schema' of Column Type 'Decimal' has an invalid expression in the Formula field.'=ROUND(INDIRECT("G" & MAX(FILTER(ROW(G:G), G:G<>"", ROW(G:G)=MAX(FILTER(ROW(G:G), G:G<>""))))) * INDIRECT("D" & ROW()), 2)'. Function 'FILTER' should have exactly two parameters, a table name and a filter condition

  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,846

    Re: Formulas does not work in appsheet , but in thunkable x

    Please provide a link to the GoogleSheet.
    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.

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

    Re: Formulas does not work in appsheet , but in thunkable x

    Only a few formulas are in the sheet, some are in the thunkable x as formulas.

    https://docs.google.com/spreadsheets...ysE/edit#gid=0
    https://x.thunkable.com/projectPage/...3b8aa265bc0e4c

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

    Re: Formulas does not work in appsheet , but in thunkable x

    This is my formulas that i am using, but I need it to be in the header, did change it, but getting erroirsa on them, not sure if they are correct.
    Beskikbaar column is C
    normal formula

    =INDIRECT("R"&ROW()-1&"C3",FALSE)+INDIRECT("R"&ROW()&"C6",FALSE)'.
    Header formula
    ={"Beskikbaar";ARRAYFORMULA(IF(LEN(B2:B), INDIRECT("R"&ROW()-1)&"C3", FALSE) + INDIRECT("R"&ROW()&"C6", FALSE), )}
    Error "Array result was not expanded because it would overwrite data in C2."


    Gebruik is column D
    normal formula
    =INDIRECT("C"&ROW()-1)-INDIRECT("C"&ROW())
    Header formula
    ={"Gebruik";ARRAYFORMULA(IF(LEN(B2:B), INDIRECT("C"&ROW()-1)- INDIRECT("C"&ROW())}
    Error "Formula parse error."



    Koste column is G
    normal formula
    =IFERROR(INDIRECT("R"&ROW()&"C"&COLUMN()-2,FALSE)/INDIRECT("R"&ROW()&"C"&COLUMN()-1,FALSE),"Error")
    header formula
    ={"Koste";ARRAYFORMULA(IF(LEN(B2:B),IFERROR(INDIRECT("R"&ROW()&"C"&COLUMN()-2,FALSE)/INDIRECT("R"&ROW()&"C"&COLUMN()-1,FALSE),"Error")
    Error "Formula parse error"



    PerDag is column H
    Normal Formula
    =ROUND(INDIRECT("G" & MAX(FILTER(ROW(G:G), G:G<>"", ROW(G:G)=MAX(FILTER(ROW(G:G), G:G<>""))))) * INDIRECT("D" & ROW()), 2)
    Header Formula
    ={"PerDag";ARRAYFORMULA(IF(LEN(B2:B),ROUND(INDIRECT("G" & MAX(FILTER(ROW(G:G), G:G<>"", ROW(G:G)=MAX(FILTER(ROW(G:G), G:G<>""))))) * INDIRECT("D" & ROW()), 2)
    Error "Formula parse error"

    https://docs.google.com/spreadsheets...oGY/edit#gid=0

  5. #5
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Formulas does not work in appsheet , but in thunkable x

    Although i can see errors in the shared file, none of the the sheet names match anything you have described above.

    I suggest you take another look at your problem and let us know once you have provided the correct file and the correct information.
    As a gesture off appreciation, you can click * Add Reputation at the foot of any of the posts of members who helped you reach a solution.

    And finally, was your problem solved? if so, please click Thread Tools above the first post of your enquiry, then select [Solved]

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

    Re: Formulas does not work in appsheet , but in thunkable x

    Yes thank you, have done a lot of changes to try to get it work, but I can not get it to work. as we have so many loadsheding that it mazkes it difualct to keep trackk on what i am trying to get to work
    I must be honnest, I got lost, so totaly lost on this now.

    I did want to use appsheet formulas, burt that is very diffrent of what google sheet is using, so I have treid to use the code only in headers Row 1.
    I did make a new file, the one I gave.
    I must be honnest, I got lost totaly lost on this now.
    This formula I have in thunbkable is the following

    In the file that I gave now, I need it to work in the headers so that appsheet do not use them at all.
    There are two ways I add data to a row.

    1. First input of data to new row I only add "Datum(Date) and "Beskikbaar" in to full one row and here I use this two formulas

    "Gebruik"(used) =INDIRECT("C"&ROW()-1)-INDIRECT("C"&ROW())
    "PerDag"(Daily) =ROUND(INDIRECT("G" & MAX(FILTER(ROW(G:G), G:G<>"", ROW(G:G)=MAX(FILTER(ROW(G:G), G:G<>""))))) * INDIRECT("D" & ROW()), 2)

    2. Second input date to new row "Datum"(Date), "Bedrag" (Amount) and "Ontvang" (recieved)

    "Beskikbaar"(Available) =INDIRECT("R"&ROW()-1&"C3",FALSE)+INDIRECT("R"&ROW()&"C6",FALSE)
    "Koste")Cost) =IFERROR(INDIRECT("R"&ROW()&"C"&COLUMN()-2,FALSE)/INDIRECT("R"&ROW()&"C"&COLUMN()-1,FALSE),"Error")


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

  7. #7
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Formulas does not work in appsheet , but in thunkable x

    I cannot see which cells have those formulas, and the file is locked from editing.

    I recommend you make a copy of the file, and use the copy for your own purposes, then make this shared file shared with "Anyone with the link" as "Editor", then tell us which sheet and which cells have which formulas.

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

    Re: Formulas does not work in appsheet , but in thunkable x

    Sorry my fault, was in a bit in a hurry to send this before loadscheding was started again here.

    The columns that is used for adding "Beskikbaar"(available) is columns "gebruik" Column 4 and "Perdag" column 8
    look at row 79 column 4 and column 8, I have add the formula in column 8 as I do have a appscript that delete it and put it in column I

    The columns that is used when using (buying) is Beskikbaar" column 3 and column 7
    See row 79 column 3 and 7

    I did share this link https://docs.google.com/spreadsheets...hI0/edit#gid=0

  9. #9
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Formulas does not work in appsheet , but in thunkable x

    Please refer to columns by their letter, it is the standard that everyone can understand without having to think which column you are talking about every time you mention a number.

    For "Gebruik", you can empty the column D of all data and formulas and values, and just put this into cell D1:

    Please Login or Register  to view this content.

    For column H, there is only 1 formula, and this is in cell H78, so it is not clear what you are trying to do.

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

    Re: Formulas does not work in appsheet , but in thunkable x

    Thank you.

    Why I gave column number, someone in a other post a wile back said I must use column number.

    Must I not use formula in Column 3 "Beskikbaar"

    Why there is only 1 showing formula in H is that I use this formula, but then with my appscript it delete it and copy it to I, as i need I not to have a formula for this to work to only show the usage of that day, when the formula is in H, id did not work for what I was using it for, it dit clash with one of my other formulas.

  11. #11
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Formulas does not work in appsheet , but in thunkable x

    Must I not use formula in Column 3 "Beskikbaar"
    Column C "Beskikbaar" is data, and there is no source for it, and so it is the source, so there is no formula for column C, beside which you did ask for formulas for columns D and H.

    Why there is only 1 showing formula in H is that I use this formula, but then with my appscript it delete it and copy it to I, as i need I not to have a formula for this to work to only show the usage of that day

    when the formula is in H, id did not work for what I was using it for, it dit clash with one of my other formulas
    The way we can get the best solution for you is if you can explain what kind or result you are expecting, for example is the formula in cell H78 giving the correct result? and if it is correct, can you explain why it does not yet match values in column I? maybe H78 is designed to go to I79 ?


    When i seen this problem, i think that maybe there is better way to get the results you need without as much issues.

    [EDIT]
    So that we can work in an editable verion, i created this sample file for developing the solutions:
    https://docs.google.com/spreadsheets...t#gid=18815692

    Please see all the green cells on each tab/sheet, for modifications to your original formulas, that give the smae results with cleaner formulas.


    I hope we can help you get best results, so please let us know.
    Last edited by janmorris; 07-24-2023 at 04:16 PM.

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

    Re: Formulas does not work in appsheet , but in thunkable x

    Thank you for this, it is nearly working 100%, and looks better than before.
    Thank for helping me with this.

    See lines 133-135
    When I add in "E" and "F" it must then it must also update "C" with the previous row of "C" (151.6) and the current row of "F" (377) and add them together (528.6), otherwise when you add new info in "C" in next line it does not show correct.

    It does not show any data in "H" in this I want it to show how many units was used for that day.

    "I" did use a script to copy "H" to "I", there were a problem that it did not work and change the value of "H" when adding new info into new row, so we tried a script to fix this problem. Script did do the following.
    1. copy "H" to "I"
    2. Clean "H"
    3. Make copy in "I" not to show formula and just as normal text. I think that thunkable x did not work with this, that why we did use the script.


    I did make them green (add them together) and red(not working ) Purple(must show data)

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

  13. #13
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Formulas does not work in appsheet , but in thunkable x

    When I add in "E" and "F" it must then it must also update "C" with the previous row of "C" (151.6) and the current row of "F" (377) and add them together (528.6), otherwise when you add new info in "C" in next line it does not show correct.
    Please give clear explanation of which cells should have what values.

    For example, in the sample, should C134 = 528.6 ?
    or is it C135?


    "I" did use a script to copy "H" to "I", there were a problem that it did not work and change the value of "H" when adding new info into new row, so we tried a script to fix this problem. Script did do the following.
    1. copy "H" to "I"
    2. Clean "H"
    3. Make copy in "I" not to show formula and just as normal text. I think that thunkable x did not work with this, that why we did use the script.
    If you take a step back, and start with the data that is imported from thunkable, then we can start creating formulas in other columns, and not be trying to work with "circular references" and the like.

    I did make them green (add them together) and red(not working ) Purple(must show data)
    There is no formula for adding C135, and D135 only looks at the row above.

    For a different result you need to give clear explanation of exactly which cells should have what values.


    ALSO, because it seems you have interspersed columns from thukable with coluns that do post-processing, it would be helpful it you tell us exactly which columns are from thunkable, and which colums you have added after thunkable, and explain why the columns are mixed instead of all thunkable columns followed by all formula columns.
    Last edited by janmorris; 07-25-2023 at 03:55 PM.

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

    Re: Formulas does not work in appsheet , but in thunkable x

    Quote Originally Posted by janmorris View Post
    Please give clear explanation of which cells should have what values.

    For example, in the sample, should C134 = 528.6 ?
    or is it C135?
    The value in row 134, column C should display 528.6. If I subsequently input the daily usage into row 135, column C, it should then reflect the total amount I've entered. Column D should indicate the quantity I've utilized. The only instance when the value in column C will alter without my direct input is when I enter data into columns E and F

    Quote Originally Posted by janmorris View Post
    If you take a step back, and start with the data that is imported from thunkable, then we can start creating formulas in other columns, and not be trying to work with "circular references" and the like.
    C =INDIRECT("R"&ROW()-1&"C3",FALSE)+INDIRECT("R"&ROW()&"C6",FALSE)
    To summarize, the formula calculates the sum of two cells: one in the third column of the row above the cell containing the formula, and another in the sixth column of the same row as the formula. The specific cells to be added are determined dynamically based on the row in which the formula is written.

    D =INDIRECT("C"&ROW()-1)-INDIRECT("C"&ROW())=INDIRECT("C"&ROW()-1)-INDIRECT("C"&ROW())
    To summarize, this formula calculates the difference between the value in the cell one row above the cell containing the formula and the value in the current cell in column C. It then checks if both of these differences are equal and returns either TRUE or FALSE. Essentially, it is comparing the differences between consecutive rows in column C to check if they are the same.

    G =IFERROR(INDIRECT("R"&ROW()&"C"&COLUMN()-2,FALSE)/INDIRECT("R"&ROW()&"C"&COLUMN()-1,FALSE),"Error")
    To summarize, the formula calculates the result of dividing the value in the cell two columns to the left of the current cell by the value in the cell one column to the left of the current cell. If any error occurs during this division operation, the formula will display "Error" instead of an error message. The cell references are dynamically determined based on the current row and column.

    H =ROUND(INDIRECT("G" & MAX(FILTER(ROW(G:G), G:G<>"", ROW(G:G)=MAX(FILTER(ROW(G:G), G:G<>""))))) * INDIRECT("D" & ROW()), 2)
    To summarize, this formula calculates the following:

    It finds the last non-blank cell in column G and takes the corresponding value.
    It multiplies that value with the value in the current row of column D.
    The result of the multiplication is rounded to two decimal places.
    The formula is dynamic and adapts based on the data in columns G and D and the row in which it is used.

    Hope this helps
    Last edited by hendrikbez; 07-26-2023 at 12:17 AM.

  15. #15
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Formulas does not work in appsheet , but in thunkable x

    If column C is based on calculations, then where is the data that is supposed to come in from thunkable or wherever else?

    Ideally you should raw data, and process it in other columns, NOT do processing of the imported data directly in the same columns.. that is just making the whole project convoluted and confusing.

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

    Re: Formulas does not work in appsheet , but in thunkable x

    Column C serves as a daily input for data, where I regularly add information. The only instance when I refrain from inputting data is when I'm adding information to columns E and F, which is when the formula comes into play. To clarify, I can input data into column C on the same day that I add information to columns E and F.

  17. #17
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Formulas does not work in appsheet , but in thunkable x

    In that case, you should add another column, and NOT try to enter data into the same column C where forulas are expected to do calculations.

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

    Re: Formulas does not work in appsheet , but in thunkable x

    Thank you, but how will this then work, if I add a new column

  19. #19
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Formulas does not work in appsheet , but in thunkable x

    Standard process would be to have your columns of raw data either from a source or manual entry, then use exrta columns to do analysis/computing based on the data.

    Spreadsheets can have up to 18,278 columns. Trying to squeeze everything into as few columns as possible isnt making use of what is available.

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

    Re: Formulas does not work in appsheet , but in thunkable x

    It currently functions in Thunkable, but I intend to migrate it to AppSheet. However, I'm facing a challenge in converting the existing functionality into Google Sheets' header formulas. My goal is to eliminate the reliance on formulas within AppSheet and instead have the necessary functionality embedded in the headers of the Google Sheet.

  21. #21
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Formulas does not work in appsheet , but in thunkable x

    If you want to use formulas in headers in Google Sheets, to populate the column of results, that is possible, however you can not also input static data into any cells in those columns because it will block the formula fro populating the cells.

    So you need to either have columns of static data and columns for array formulas, or just continue with your current strategy and try to make it work.

    Since you want to mix using formulas and scripts, this is not a simple solution, so i recommend you either work out a simple strategy that we can help with, or hire a consultant to create the formulas and scripts for the project.

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

    Re: Formulas does not work in appsheet , but in thunkable x

    Ok, thank you, will try to see how I can make it simpler

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

    Re: Formulas does not work in appsheet , but in thunkable x

    I have simplified the Google Sheets by adding three new sheets: "Oor," "Koop," and "Saam."

    In the "Oor" sheet, I input "Datum(Date)(B)" and "Beskikbaar(C)." The formula for "Beskikbaar(C)" is "=Oor!C2 + SUM(Koop!D2:D)," and for "Perdag(E)" it is "=ROUND(INDIRECT("Koop!E" & MAX(FILTER(ROW(Koop!E:E), Koop!E:E<>"", ROW(Koop!E:E)=MAX(FILTER(ROW(Koop!E:E), Koop!E:E<>""))))) * INDIRECT("D" & ROW()), 2)."

    In the "Koop" sheet, I input "Datum(Date)(B)," "Bedrag(C)," and "Ontvang(D)." The formula for "Koste(E)" is "=IFERROR(C2/D2)."

    For the "Saam" sheet, I encountered some challenges with the formulas, so I am using a script to handle data insertion. However, there's an issue: When I add data in the "Koop" sheet, it displays correctly. But when I add new data in the "Oor" sheet, it inserts the data before the "Koop" data row in "Saam," causing the data to shift down.

    Please let me know if you need any further clarification or assistance with the information provided.

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

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

    Re: Formulas does not work in appsheet , but in thunkable x

    Any help on this ?

+ 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. Why do some formulas work
    By Wskip49 in forum Excel General
    Replies: 2
    Last Post: 08-01-2022, 11:11 AM
  2. I can't get these two formulas to work together as one.
    By jphilipson in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-25-2016, 11:32 AM
  3. Why can't I get any formulas to work??
    By Andyc7 in forum Excel General
    Replies: 18
    Last Post: 08-28-2007, 01:27 PM
  4. Formulas in a cell don't work as formulas.
    By Lyle McElhaney in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-01-2007, 05:04 AM
  5. Formulas do not work any more ?
    By Shelly in forum Excel General
    Replies: 2
    Last Post: 05-08-2006, 06:10 PM
  6. [SOLVED] Work book formulas
    By Jessica in forum Excel General
    Replies: 1
    Last Post: 06-09-2005, 06:05 AM
  7. [SOLVED] How can I work around the non value (#N/A) when using formulas in.
    By Fleur in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-03-2005, 10:06 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