Excel Formula: finding last value in a row and getting value next to it

kiril98

New Member
Joined
Feb 2, 2021
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Hello Everyone,

I am trying to get the value of the last (left to right) "BID" and "ASK" entry in every row.
Basically I need somehow to find the last BID/ASK entry in every row and get the value next to it.
I've tried so far with INDEX, MATCH, Vlookup but without any success. Most likely I am doing something wrong or not setting up the parameters correctly.
Any help is much appreciated.

Thanks!

1612281339367.png
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Hi Kiril98,

This should do what you ask.

Kiril98.xlsx
ABCDEFGHIJKL
1BidAskMDEntryTypeMDEntryPXMDEntryTypeMDEntryPXMDEntryTypeMDEntryPXMDEntryTypeMDEntryPXMDEntryTypeMDEntryPX
21111 BID1BID11BID111BID1111
3111112222ASK2ASK22ASK222ASK2222BID11111
4333322222BID3BID33BID333BID3333ASK22222
5  
6333334444ASK4ASK44ASK444ASK4444BID33333
7555 BID5BID55BID555
844444 BID6BID66BID666BID5555BID44444
9 55555ASK7ASK77ASK777ASK6666ASK55555
Sheet1
Cell Formulas
RangeFormula
A2:B9A2=IFERROR(INDEX($C2:$L2,AGGREGATE(14,6,COLUMN($C2:$L2)-COLUMN($B$1)/($C2:$L2=A$1),1)+1),"")
 
Upvote 0
sorry Toadstool But started and completed next you


ww.xlsx
ABCDEFGHIJKLMNO
1BIDASK
2BID1.1783BID1.17829BID1.17829BID1.17829BID1.17829BID11 
3BID1.17829BID1.17829BID1.17828BID1.17828BID1.17828ASK21.178282
4BID1.17827BID1.17827BID1.17827BID1.17827BID1.17826BID33 
5BID1.17829BID1.17828BID1.17828BID1.17828BID1.17828BID44 
6BID1.17828BID1.17828BID1.17828BID1.17828BID1.17828BID55 
7BID1.1783ASK1.17831ASK1.17832ASK1.178321.17831.17832
8ASK1.17831ASK1.17831ASK1.17832 1.17832
9ASK1.1783ASK1.1783ASK1.17831ASK1.17831ASK1.17831ASK8 8
10BID1.17831BID1.17829BID1.17829BID1.17829BID1.17829BID99 
11ASK2.17831ASK1.17832ASK1.17832ASK1.17832ASK1.17833ASK10 10
12BID1.1783ASK1.17832ASK1.17832ASK1.17832ASK1.17832111.17831.17832
ورقة1
Cell Formulas
RangeFormula
N2:O12N2=IFERROR(INDEX($A2:$L2,AGGREGATE(14,6,(COLUMN($A2:$L2)-COLUMN($A2)+1)/($A2:$L2=N$1),1)+1),"")
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,685
Members
448,978
Latest member
rrauni

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