Convoluted If/Vlookup formula? Not sure how to code this one.

srosk

Board Regular
Joined
Sep 17, 2018
Messages
132
[TABLE="width: 75"]
<tbody>[TR]
[TD]Schedule

[/TD]
[TD]Schedule Name
[/TD]
[TD]%1
[/TD]
[TD]%2
[/TD]
[TD]%3
[/TD]
[TD]%4
[/TD]
[TD]%5
[/TD]
[TD]%6
[/TD]
[TD]%7
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]bla1
[/TD]
[TD][/TD]
[TD]2
0
[/TD]
[TD]40
[/TD]
[TD]6
0
[/TD]
[TD]8
0
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]bla2
[/TD]
[TD][/TD]
[TD][/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD]10
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]immediate
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD]100
[/TD]
[TD]100

[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Ok.. so this is a little complicated. I currently have an If statement written that says if abs(T-M)> 1 and W < 1, then execute function “C”.The issue, is that isn’t quite exactly how my process shouldwork.

What needs to happen, is it needs to determine the highestschedule before it reaches 100. So for sched 1, that’d be year 5. For schedule2, year 3. The script would say if T < Y4 (for example) and if abs(T-M)> 1, then execute function “C”. My sheet withdata does not have schedule # on it. Instead it has ‘source’ in column U. Ihave table with the following on the instructions tab as well.
Source | Schedule

What I know needs to happen is a vlookup of source (columnU), against the instructions tab columns H:I to determine the schedule. But, Inot know how to determine which year (%1, %2, %3, etc.) is the last year beforeit reaches 100.

To complicate matters… on the schedule 0 where it isimmediately 100, I want to possibly determine out of all schedules, what is thehighest year # (%1, %2, %3, etc.), before there is a 100%. Sorry if this doesn’tmake total sense.. I’ll be around for questions!



 
Last edited:

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,223,894
Messages
6,175,250
Members
452,623
Latest member
Techenthusiast

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