Return the value of Cell A2 from table "Sheet"?

Hy,

Iโ€™m sorry, I canโ€™t find an expression to use in a formula, to do this very simple thing:

Return the value of Cell A2 from table โ€œSheetโ€?

So itโ€™s not LOOKUP, itโ€™s just getting the value of a cell, knowing the table name, the column letter and the row number.
Do you know it?

Thank you

Solved Solved
0 16 1,080
1 ACCEPTED SOLUTION

Some version of this formula is what youโ€™re going to need to use in the place to enter emails to send your workflow to:
2X_1_12cdf5dd02348d6ece258b9bb4eea645c9131d1e.png

View solution in original post

16 REPLIES 16

In generally it would be like LOOKUP(2,โ€œSheetโ€,"_ROWNUMBER",โ€œColumnNameโ€)

Hmmm โ€ฆ there is something Iโ€™m not doing right.

So to explain, what I want is to write a formula for a notification workflow, for the email address to send the notification to. It sends it when a task is set to Urgent. But it has to send the notification to all the Team members that are responsible for the task.

Basically Send a Notification on a Priority Change of a Task, to all Team members Resopnsible for that Task.

So what I was thinking (and if there is an easier way please let me know ), was to have a formula something like this:

IF(CONTAINS([Team],LOOKUP(2,[Members],"_2",โ€œNameโ€)),LOOKUP(2,[Members],"_2",โ€œEmailโ€),"")

So
IF in the List of Names ([Team]) in the Task that has just changed itโ€™s Priority to Urgent, there is also the first name (Row 2, Column โ€œNameโ€) from the Members table ([Members]):

LOOKUP(2,[Members],"_2",โ€œNameโ€)

, then, return his email:

LOOKUP(2,[Members],"_2",โ€œEmailโ€)

, if not than leave it blank.

If it works itโ€™s fine for me for now because there arenโ€™t many Members, so I can make such a rule for each member (same formula where I just change the Row Number to search for the next name in the column Name from the Members Table and so on) . However, if there were 100 Members, this method wouldnโ€™t be so convenient anymore because โ€ฆ there would be 100 formulas. So Iโ€™m guessing there is another way to Send a Notification on a Priority Change of a Task, to all Team members Resopnsible for that Task.

So far, writing the formula as you suggest, doesnโ€™t work, as it says:

Unable to find column _2

It doesnโ€™t work because that formula needs โ€œ_ROWNUMBERโ€, not โ€œ_2โ€ which is possible a column name.

Would you please open your table structure a little. Where these columns are and is there a relationship between these tables.

Iโ€™m not sure I understand. What should go in โ€œ_ROWNUMBERโ€? I put "2 because I want it to look in the second row.


So the Team Column is a EnumList Reference to the Names in Members Table. Thatโ€™s the link to populate the List of Team Members for a Task.

And the point is to make a Notification send to the Team Members of a Task that has just had a Priority change to Urgent.

So the question is what formula retrieves the Emails of the Team Members found within a list, associated to a task โ€ฆ one by one. (or if the โ€œToโ€ window of the Action from a Workflow accepts it, get all the emails, separated by a comma or something).

Put something like this in the โ€œToโ€ section of the workflow:

Select(team_members[email], in([Team_Member_ID], [members]))

The idea here is that youโ€™ve got an enumlist that lists the team members for the task (holding the Key ref value for each team member in a list); so in your workflow you can add a formula like what Iโ€™ve got above into the โ€œToโ€ section that looks at that list, then pulls all the emails of the people in that list.

Iโ€™m sorry, I canโ€™t really follow the formula.

So there is:

The table Members that has the columns Member_ID, Member Name, Member Email

And the Table Tasks that has the column Team that is an Enumlist referencing Member Name

Select(team_members[email], in([Team_Member_ID], [members]))

what is โ€œteam_members[email]โ€ referencing?
[Team_Member_ID] would be Member name I guess, from Members Table โ€ฆ but Iโ€™m not sure if thatโ€™s what you mean
[Members] would be the Member Table.

And this formula would retrieve all emails? (never really used Select before so I donโ€™t know itโ€™s logicsโ€ฆ)

Does the โ€œToโ€ field accept more than one email inside it?

What is the enumlist base-type?

2X_3_30f676ab1612623ab3cdaffb3c4756849af7070d.png

Base on what I see here:
2X_1_1d2af290842097281e0a5419a1e16d784aec7699.png
The values stored in that column are the actual Names of the people.
2X_8_885be49c9a74cd96aeb7463411b9e0e7bcbabe8c.png


Try the following formula:

SELECT(Makeri[Email], IN([Prenume], [_thisrow].[Echipa]))

Itโ€™s a reference base type, to the Member Table where the key is the Name column

But it looks like youโ€™ve got an actual ID column marked as the key:

2X_5_5b0ef84eee91259432722748325993e51fa333fe.png

Yes. Is that an issue in any way?

Well, there is a column for names and one for nicknames. I reference the Nickname column which is the one I indicated (you will find Sorin there too, 'couse I use my name as a nickname โ€ฆ) but anyway, thatโ€™s not so importantโ€ฆas long as I understand the formula, Iโ€™ll get the right column name.

Ok, Iโ€™ll play around with this until I get what I want. If it works, itโ€™s already much simpler than what I was about to do.

But just so I know generally, how do you write the formula to get the value in cell A2 of table โ€œSheetโ€?

what is โ€œ_Rownumberโ€ here?

Thank you

Whenever Iโ€™m writing out a LOOKUP formula, I read it like this in my head (it might help guide you too):

LOOKUP(What to find, what table to look in, where to look, what I want)
LOOKUP(2, Table, _RowNumber, Column)

_RowNumber is the column where the value being looked up will be found.
With LOOKUP weโ€™re saying:

  • hereโ€™s a value
  • look in this table
  • youโ€™ll find that value in this column
  • and give me whatever is in the column I specify

But then why is โ€œ2โ€ in the โ€œWhat to findโ€ position? Iโ€™m not looking for the value โ€œ2โ€. Iโ€™m looking to get whatever Value is in the Google Spreadsheets Cell A2 (or B3 or C6 or whatever) in Table called โ€œSheetโ€ โ€ฆ

and why is โ€œ_ROWNUMBERโ€ in the โ€œyouโ€™ll find that value in this columnโ€ field โ€ฆ

Maybe there is a misunderstanding due to talking in writing :)) but I donโ€™t get it.

Oooh โ€ฆ I think I got it now. Itโ€™s a mindbender

the formula is saying - Look for (2, in table sheet, where 2 is the Rownumber, now give me the value in column - column name)
Right?

Nailed it.

Your original question was โ€œHow can I get something from row 2, in column aโ€ - but we donโ€™t do column letters in AppSheet, we use names.

So another way to say your original question would be: โ€œHow can I get something from row 2 from the โ€œSomethingโ€ column.โ€

BUTโ€ฆ

This is what youโ€™re really asking about.

In order to solve THAT problem, youโ€™ll need to use the SELECT()

Some version of this formula is what youโ€™re going to need to use in the place to enter emails to send your workflow to:
2X_1_12cdf5dd02348d6ece258b9bb4eea645c9131d1e.png

The โ€œ_ROWNUMBERโ€ means it tries to find the value from row 2 as it is set in the LOOKUP formula. The LOOKUP is the same than ANY(SELECT(Sheet[ColumnName],[_ROWNUMBER]=2))

Top Labels in this Space