I tried to update an existing journalentry. I am providing id, latest synctoken and line item details. But it returns an error saying that 'Amount on debits not equal to creditsPlease balance your debits and credits '. I have checked there is no issue in credit and debit amount. Both are equal.
I do not understand why I am getting this issue?
I found my problem. In my existing journal, the lines are with id 0, 1, 2, 3. But while updating it, I was sending the lines with different ids like 0, 2, 7, 8.
So found the solution, I need to pass exact ids for the lines in a journal entry
Related
As per the image example below, I would like to scan a list of entries for a missing data points (e.g.: I expect 3 different month names per name entry in the list, but some names only received offers in 2 or 1 of these months), and for each detected missing entry, automatically generate a new line with the value of row A, the scanned for value of row B filled in, and row C with a blank value.
I've tried generating this via an IF formula, but to no avail.
Is there a way to do this via formula, or would this require a macro?
The example below shows the input on the left with the desired output on the right. Any hints are much appreciated!
Example
try:
=INDEX(TEXT(LAMBDA(n, SORT(LAMBDA(x, {SPLIT(x, ""),
IFNA(VLOOKUP(x, {n&""&"1/"&MONTH(LEFT(OFFSET(n,,1), 3)&1), OFFSET(n,,2)}, 2, ))})
(LAMBDA(a, FLATTEN(UNIQUE(FILTER(a, a<>""))&""&
TRANSPOSE(UNIQUE(FILTER("1/"&MONTH(LEFT(OFFSET(a,,1), 3)&1),
OFFSET(a,,1)<>"")))))(n)), 1, 1, 2, 1))(A2:A), {"#", "mmm", "#"}))
Hello stack overflowers.
I have recently been creating a nutrition tracker to better track and control my nutrition. However I have run into an issue. So currently I have a 1 sheet in the nutrition tracker which is a "database" of foods and their macro nutrients per gram. In this sheet, I will enter all the foods that I generally eat and their associated per G nutrients.
this food "database" sheet has the following columns.
FOOD NAME, CALORIES, PROTEIN, CARBS, OF WHICH SUGARS, FAT, OF WHICH SATURATED, FIBER, SALT
This database is then used as a reference, so that when I input each meal as I eat it, I can simply select the food from a drop down list and type the number of G in that meal, and the nutrients will all be calculated for me.
I currently have it setup so that I can select food from the drop down list generated by "foods" sheet, within each meal table I have created. This is then correctly filling in the rest of the columns as expected once I input a weight for each meal. There is however a huge problem.
As soon as the FOOD NAME column of the Foods sheet had values in it below row 7 (not sure why this row is the limit) the whole thing stops working, the data grabs based on VLOOKUP just return 0 and do not act as they are meant to. The strange thing is they work absolutely fine until I enter too many foods (7 foods) into the foods sheet.
Please find below a link to my spreadsheet, maybe you can duplicate it and play around a little yourselves to better understand the issue.
https://docs.google.com/spreadsheets/d/1orwih7s_Z4ew8G1vJcR6qlxyMpX8pqK-3Ynj42qQjcQ/edit?usp=sharing
(if you help me fix it, you will have a free nutrition tracking spreadsheet to help you take control of your diet aswell)
Thanks in advance.
In the June tab, clear all formulas in the range D11:K18.
Then enter in D11
=ArrayFormula(IF(LEN(B11:B18), IFERROR(VLOOKUP(B11:B18, FOODS!A:I, {2, 3, 4, 5, 6, 7}, 0)),))
This single formula will process all values entered in B11:B18.
Note the third parameter of VLOOKUP (set to false). If it is ommitted (as in your formula) it will default to 'true'. That means vlookup expects a 'sorted order' which may not be the case for your data.
References
VLOOKUP
try:
=INDEX(IF(B11:B18="";; IFNA(VLOOKUP(B11:B18; FOODS!A:I; COLUMN(B:G); ))))
Today I created a google form that saves automatic results to google sheets.
The idea is that I send e-mail correspondence, but sometimes there are jokers who enter a different age, name, but the same e-mail. I would like to sort this from the results obtained into another sheet called "sort", people who are over 23 years of age.
I created the formula:
=UNIQUE(QUERY(ask!A:D;"Select * Where D>=23"))
And it working correct.
Now how to add options to the formula already created above, so that it shows only one email address so that they do not duplicate each other? (Regardless of the name or age column ...)
I would like it to look like this in its final form:
Please help :)
perhaps try:
=UNIQUE(Ask!B2:C)
or try:
=SORTN(Ask!A2:D, 9^9, 2, 2, 0)
I work at a warehouse and I am developing an Inventory System. When products come in, it is because they are damaged. I have one person fill out a row in Google Sheets when the product arrives (Sheet1 in the workbook link below). I mainly need Barcode, Issue, and Date from this Sheet).
Next, a mechanic fixes the product and fills out a google form with his name and the barcode of the product; the responses are Form Responses 1 in the workbook link below.
I then pull the data for all the incoming products from Sheet1 to a new tab (Barcodes In/Out in the workbook link below), querying Barcode, Issue, and Date. I pull the data for all the outgoing product in another column in this tab, querying the Barcode from the Form Responses 1. Column E (Backlog) has a formula that only shows barcodes of products that have not been repaired (gone "out").
I pull the data for what is in my Back log (products still in warehouse needing repair) into another tab named Back Log. This was working perfectly until I realized products can come back to our warehouse (i.e. "123" can come in and get fixed and sent out again. "123" can come back again for more repairs.)
This poses a problem because Back Log now shows "123" twice with two different Issues.
I need Back Log to query "123" only and only with the most recent Issue.
This is a lot of info, but I tried to be as detailed as I could. Thank you for your help in advance!
Here is the link to my workbook
In G2 I entered
=ArrayFormula(iferror(vlookup(unique(Sheet1!B2:B), sort({Sheet1!B2:B, Sheet1!A2:F}, 7, 0), {2, 3, 4, 5, 6}, 0)))
UPDATE: Based on new info...
=query(ArrayFormula(iferror(vlookup(unique(Sheet1!B2:B), sort(filter({Sheet1!B2:B, Sheet1!A2:F}, not(regexmatch(Sheet1!B2:B&"", textjoin("|", 1, filter('Barcodes In/Out'!D2:D, isna(match('Barcodes In/Out'!D2:D, 'Barcodes In/Out'!E2:E, 0))))))), 7, 0), {2, 3, 4, 5, 6}, 0))), "where Col1 <>''")
See if that works for you?
I am trying to get a random number between 3, 4, and 26-29.
I have tried rand(3, 4, 26..29), but was unsuccessful. Theses are product id numbers that I am trying to assign object to randomly.
Any help is beneficially and welcomed.
There may be a nicer syntax, but this should do the trick :
([3,4]+(26..29).to_a).sample