Not sure which formula to use to replace a vlookup

Lizzi

Board Regular
Joined
Sep 23, 2011
Messages
156
Office Version
  1. 2016
Platform
  1. Windows
Hi All,

I'm using excel 2016 and have been using a vlookup to help with my data, i am now starting to see multiple lines that have the same lookup value but the value is different...so i know that vlookup will no longer work for me as it looks only at the first row to give me the results but i'm unsure as to what formula will.



Many thanks for any help given :)

Lizzi
 

Attachments

  • Excel Example.PNG
    Excel Example.PNG
    48.9 KB · Views: 16

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
How would someone know the difference between Row 4 and Row 5 when looking at the PO Number? I don't entirely know what you are working with, but if you need the same PO multiple times and kept in a specific order (chronological or otherwise), consider using "POXXX12.1", "POXXX12.2", etc.
 
Upvote 0
Is that what you want?

Book2
ABCDEFGHIJKL
1
2PO NumberCurrencyLocal currencyEuroCommentsPO NumberCurrencyLocal currencyEuroComments
3POXXXX12USD20001709Not neededPOXXXX12USD20001709Not needed
4POXXXX12USD50001709Not neededPOXXXX12USD50004274
5POXXXX12USD27501709Not neededPOXXXX12USD27502350
6POXXXX12USD01709Not neededPOXXXX12USDIncluded on above line
7POXXXX12USD15001709Not neededPOXXXX12USD15001282
8POXXXX13USD9571709Not neededPOXXXX13USD957818
9POXXXX14USD5428180POXXXX14USD542463
10POXXXX26USD1254630POXXXX26USD125107
11POXXXX52USD01070POXXXX52
12
13
Sheet1
Cell Formulas
RangeFormula
C3:C11C3=INDEX($I$3:$I$11,AGGREGATE(15,6,(ROW($I$3:$I$11)-ROW($I$3)+1)/($G$3:$G$11=A3),COUNTIF($A$3:A3,A3)))
 
Upvote 0
nearly...i think the "euro" column looks wrong thou?

really appreciate you helping me, thanku
 
Upvote 0
How would someone know the difference between Row 4 and Row 5 when looking at the PO Number? I don't entirely know what you are working with, but if you need the same PO multiple times and kept in a specific order (chronological or otherwise), consider using "POXXX12.1", "POXXX12.2", etc.
they wouldn't but i would.....and i can't change the PO number, unfortunately it is what it is
 
Upvote 0
nearly...i think the "euro" column looks wrong thou?

really appreciate you helping me, thanku

Updated Euro column

Book1
ABCDEFGHIJKL
1
2PO NumberCurrencyLocal currencyEuroCommentsPO NumberCurrencyLocal currencyEuroComments
3POXXXX12USD20001709Not neededPOXXXX12USD20001709Not needed
4POXXXX12USD50004274Not neededPOXXXX12USD50004274
5POXXXX12USD27502350Not neededPOXXXX12USD27502350
6POXXXX12USD00Not neededPOXXXX12USDIncluded on above line
7POXXXX12USD15001282Not neededPOXXXX12USD15001282
8POXXXX13USD957818Not neededPOXXXX13USD957818
9POXXXX14USD5424630POXXXX14USD542463
10POXXXX26USD1251070POXXXX26USD125107
11POXXXX52USD000POXXXX52
12
13
14
Sheet1
Cell Formulas
RangeFormula
C3:C11C3=INDEX($I$3:$I$11,AGGREGATE(15,6,(ROW($I$3:$I$11)-ROW($I$3)+1)/($G$3:$G$11=A3),COUNTIF($A$3:A3,A3)))
D3:D11D3=INDEX($J$3:$J$11,AGGREGATE(15,6,(ROW($I$3:$I$11)-ROW($I$3)+1)/($G$3:$G$11=A3),COUNTIF($A$3:A3,A3)))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,025
Messages
6,122,734
Members
449,094
Latest member
dsharae57

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