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

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
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,213,489
Messages
6,113,953
Members
448,535
Latest member
alrossman

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