Use value from other list in calculated column? - sharepoint-online

I have created a number of lists in Sharepoint. Now I want to create a calculated column for one of these lists. For this calculation I need a value from another list. In Sharepoint, can you look up a value from another list (i.e. not select or fill it with a Lookup column) and use it in calculated columns?
In Excel I would solve this with Vertical Search, is there such a thing in Sharepoint?
Thanks!

This is a known limitation of SharePoint calculated columns.
Calculated column formula can only reference the column values from same list item/row. It cannot access column values (data) from other lists in SharePoint site.
Even if you use lookup columns, those are not supported in calculated column formula.

Related

How do you write an array formula based on multiple criteria in MS Excel?

So I have two columns in MS Excel, Let's call them A and B, and I'm trying to create an array formula that let's me create a list from B, based on a specific paired item on the same row in column A. I know how to write a formula to return a list of unique values from one column, but is there a way to create a unique list from one column based on values from another?
Thanks in advance. I've been using this site for years but never had a question that wasn't answered previously. You've all helped me out so much in the past.
Here's an example of what I'm trying to do.(Hopefully this makes sense)
This isn't an exact copy of what I want but it's an approximation. I'm trying to fill out the colors of the corresponding car types without any duplicates.
Here is an example of getting the unique items in column B for column A having the value "mike" using Excel 365. Pick a cell and enter:
=UNIQUE(FILTER(B1:B12,A1:A12="mike"))

formula that matches against multiple dates and grabs the most recent

I have a data table with two columns. The first column has a list of Project IDs, and the second column has a bunch of dates associated with those projects. A project can have multiple dates associated with it.
I would like to create a separate summary table of two columns. The first column will be a list of unique Project IDs (I've been able to do this with an index/match function). I want the second column to search the dates column and identify the most recent date associated with each project.
Is it possible to create this second column of my summary table using standard excel formulas and without using any VBA? After an hour or two, I'm not convinced that this is possible.
I was hoping that, for a given project ID, there might be a way to do the following:
--> identify the row numbers for all rows that contain a given project ID;
--> use this row number information to grab the corresponding cell values from the dates column (presumably by first constructing a list of cell references)
--> display the max date out of those that are returned.
What my spreadsheet looks like
The AGGREGATE¹ function can quickly calculate a pseudo-MAXIF function.
In E2 as a standard formula,
=AGGREGATE(14, 6, (B$1:INDEX(B:B, MATCH(1E+99,B:B)))/(A$1:INDEX(A:A, MATCH(1E+99,B:B ))=D2), 1)
Fill down as necessary.
Like the SUMPRODUCT function, AGGREGATE benefits from referencing the minimum number of rows necessary. The MATCH(1E+99,B:B) truncates each column referenced by the INDEX function at the extents of the daes in column B.
¹ The AGGREGATE function was introduced with Excel 2010. It is not available in earlier versions.

Trying add up values but have multiple entries

I am trying to look up the value in one column and pull the number from another column.
Of course, I could use the simple V-lookup or Match.
However, the first column of data has multiple entries that are the same. If I Vlookup it is just going to pull the first number in the second column.
I need to pull each number from the second column and somehow add them together. Despite the fact I have multiple entries.
If there is a way to consolidate the multiple entries in 1st column while also summing up the numbers in the 2nd, that would be great.
I would recommend a Pivot Table. To create one, select a cell in your data range (which needs to have column names in the first row. Choose Insert / Pivot Table from the Ribbon and select the New Worksheet option for the location.
In the Pivot Table list on the new worksheet, drag the name of the first column to the Row Labels box and the name of the second column to the Values box. The name in the Values box should turn to Sum of <2nd column name>.
The Pivot Table will now show a sorted list of the column 1 values and the summed values of column 2. In the example, you'll see that
Does SUMIF do what you are looking for?

How does a calculated column work in Sharepoint?

How does acalculated column work in Sharepoint? When a calculated column is added to list, the next moment it'll update the list items. How does it happen?
Calculated columns in SharePoint 2010 are similar to formulas in Excel spread sheet. Their result is attained by writing formula that uses the values of other columns (their names). There are all sorts of formulas to perform calculations as pointed out in the Calculated Field Formulas –msdn page, with example and possible result. You could also check the two links below that show steps of how to achieve a calculated column:
SharePoint: Creating Calculated Column Formulas
About SharePoint Calculated Columns
Hopefully, this will make things more clear.
Short Answer: it updates the value when you save an item OR when you change the calculation in the field setting
read this very interesting post. discussion in the comments section is very interesting.
Calculated fields are stored in Database and they are updated when you save an input.

How do I link a calculated column to a column in another list in SharePoint?

I have 2 lists with some common columns. I need to multiply the Calculated Sum value (of a certain column) in one list by a particular column value in another list.
How would I achieve this?
The formula in a calculated site column can reference only other site columns that are in the same list or library. Therefore, when you add the calculated site column to a list or library, you must also add the site column that is referenced in the formula.
If I were you, I'd add a column where I LOOKUP the value from the List A, and then use that column for my calculated field in List B.
You can not use use/loockup a calculated column from the list A in List B unless doing some code and create an xslt formula filtring on SP Designer

Resources