Help with an Expression required

Hi, i have a sheet with two tables

Table 1

Here i have columns like Lot No., Storage Bin(A Section), Location Availability ?

Table 2

Here columns are Lot No., Status,

What i want help with is in Table 1 Location Availability ? i want top put in an expression where if the same lot no. as in Table 1 in Table 2, where Status is completed, i want the expression return data as available, or Unavailable.

I dont mind if i get a Google Sheet Expression also

Can anyone help me in this regard.

0 7 279
7 REPLIES 7

@DPM_reports
Try with this:

IF(
	LOOKUP(
		[_THISROW].[Lot No],
		"Table 2",
		"Lot No",
		"Status"
	) = "Completed",
	"Available",
	"Unavailable"
)

can u also tell me the Google sheet expression for the sameโ€ฆ

As i tried your expression which in this case works as requiredโ€ฆ

But my solution requires the expression to be in the sheet rather than appsheet for better visibility of results

Itโ€™s hard to construct that expression without knowing your gSheet and Table structures actually. On the other hand, I donโ€™t advise use of Spreadsheet Formulas, where it will need the app to be synced first to fetch the calculated results from the spreadsheet. Using AppFormula instead will be more direct and dynamic. Besides use of spreadsheet formulas will increase your sync time as well. Worth reading below pages:


My problem in this case will be that once data is entered in table 1 โ€ฆuser will have not edit access againโ€ฆand this column value to change will require the user to go into it and editโ€ฆif itโ€™s in the gsheetโ€ฆthe data of this column will not require user access to edit and hence will serve my access

@DPM_reports
I donโ€™t think I can follow you correctly here. Can you please briefly describe how data is entered into your app? Whatโ€™s the sequence? How you have structured your tables and your gSheet back-end? And I havenโ€™t understood this part as well:

Appreciate your explanation.

This column where i want this formula to entered will have its value altered after the next process data is entered by another departmentโ€ฆand when a cloumn in that sheet changes its value, the value in the 1st sheet changesโ€ฆ

hence i said if the formula is appsheet based, it will be altered/changed only when the user goes to edit mode and saves that dataโ€ฆonly then the value changesโ€ฆwhich would be not feasible for meโ€ฆ

if the value is changed via a Google sheet formula, the user does not have to goto edit mode to see the changed value, it automatically does itโ€ฆ

Hope your getting my pointโ€ฆ

@DPM_reports
I got the point, but still you donโ€™t need the formula in the gSheet. You can use the expression in the Initial Value, constraint the edit for the first time the record is created via Editable_if and you can use the Reset on Edit to automatically reset the initial value and the new value will be calculated automatically.

Besides, itโ€™s doable with creating a DataChange workflow and assinging it to the FormSaved action as well.

There are many alternatives for manipulating gSheet data depending on what you are trying to establish.

Top Labels in this Space