Vlookup to next entry workaround

Barnacles

New Member
Joined
Feb 6, 2025
Messages
3
Office Version
  1. 365
I have a table (A to M) which shows a list of "Impact Factors" which have scores attributed to them plotted across a year. These scores are changed based on actions taken according to the target month (column Q) and should reduce to the new score from that month onwards in the A to M table. The actions table (P to R) is taken from another list using FILTER. My original formula looks up the month/year and the Impact Factor to the actions table and if necessary changes the score in the table... however, i didnt consider a secondary Impact Factor in the actions table and my vlookup formula only captures the first (in my example, Impact F should reduce to 1 from 10 2025).

I've started to see if I can COUNTIF number of times an Impact Factor shows in column P and if its more than 1 then to look up somewhere else.. but im then finding myself back where i started with not being able to lookup the second occurence. Basically i'm a bit muddled! Am I on the right track, or is there a better way to do this?

r/excel - Vlookup workaround for next value
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
The first 6 is entered manually in Jan, and then Feb onwards formula cross references name of Impact Factor (ie, Impact F) and Month Year to the Actions table on the right. If both match then it changes the score to the new score from column R. If theres no match it takes the value from the column before.
 
Upvote 0
Try:
Book4
ABCDEFGHIJKLMNOPQR
1Impact Factor1 20252 20253 20254 20255 20256 20257 20258 20259 202510 202511 202512 2025Impact FactorTarget MonthNew Score
2Impact F666666333111Impact B, Impact F7 20253
3Impact D6 20253
4Impact F10 20251
Sheet3
Cell Formulas
RangeFormula
C2:M2C2=XLOOKUP(1,ISNUMBER(SEARCH($A2,$P$2:$P$4))*($Q$2:$Q$4=C$1),$R$2:$R$4,B2)
 
Upvote 0
Try:
Book4
ABCDEFGHIJKLMNOPQR
1Impact Factor1 20252 20253 20254 20255 20256 20257 20258 20259 202510 202511 202512 2025Impact FactorTarget MonthNew Score
2Impact F666666333111Impact B, Impact F7 20253
3Impact D6 20253
4Impact F10 20251
Sheet3
Cell Formulas
RangeFormula
C2:M2C2=XLOOKUP(1,ISNUMBER(SEARCH($A2,$P$2:$P$4))*($Q$2:$Q$4=C$1),$R$2:$R$4,B2)
easy as that! thanks so much!
 
Upvote 0

Forum statistics

Threads
1,226,456
Messages
6,191,145
Members
453,643
Latest member
adamb83

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