You are on page 1of 2

IIMU/SSM-II/Lab-4

Problems

1) We developed the function GVLookup in session 11. Develop a function by the name GHlookup
which is a generalization of Hlookup function.

2) Goal Seek Table – In the Project Appraisal Problem (done in session-2 of SSM-1 course, back in
2020) as given in Page 141 of SS Note, keep all the parameters as they are except for the selling
price. Change the selling price to 0.55 instead of 0.45. Now, develop a goal seek table using a
SUB similar to the one developed as part of session 11 of SSM-2, which would tabulate the
different capacity build up rate required for achieving a NPV of 0, 50, 100, 150, and so on upto
1000.

NPV CapBuildupRate

50 
100 
150 
200 
250 
300 
350 
400 
450 
500 
550 
600 
650 
700 
750 
800 
850 
900 
950 
1000 

3) TSP – In the TSP problem done in class, we designed it to always start with City number 1.
Modify the SUB so that the starting city number is also given by the user.
You can take the starting city from the user using an Input Box. Read more about Input Box from this
link - https://www.excelfunctions.net/vba-inputbox-function.html

4) TSP. Consider the SUB developed for TSP in the class. Modify it to do the following:
When a row of a city is scanned and the next city is found, the minimum cost element of that row in
the original cost range should be shown in bold font. Write another sub, named Fontregular, to
change the font of the original cost range to regular.

Hint if you wnt to show the font style of a cell , say A1, of the spreadsheet in bold, the VBA
statement is:
Range(“A1”).Font.FontStyle = “Bold”
If you want to use regular font for the same cell use the statement:
Range(“A1”).Font.Fontstyle = “Regular”
Find more about how to change font style, font colour etc from Google.

You might also like