Get the column value from a row

paivers

Board Regular
Joined
Sep 4, 2009
Messages
64
I have evaluated a single row using TopN(1,table,expression). Now I want to use that in a calculated column by extracting a specific column from the row set. How would I do that? An alternative approach I have considered is to use Values(filter(table,rowsIwant)) but a similar problem is how do I change a column into a scalar value, assuming I can guarantee one row returned.

A simpler way of saying it, is how to I get the most recent value of X for customer Y and put that as a calculated column on all of Y's rows.

- Pete
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Would =IF([customer]=Y,CALCULATE([x],customer=Y),BLANK())) or something like that work?
 
Upvote 0
IF you know you have exactly 1 row in a table, VALUES() is certainly the way you covert it to a scalar. Depending on your specific scenario that might be used with LASTNONBLANK/TOPN/FILTER/LOOKUPVALUE/...
 
Upvote 0

Forum statistics

Threads
1,215,072
Messages
6,122,968
Members
449,095
Latest member
Mr Hughes

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top