Vlookup Help

tomehta

New Member
Joined
May 20, 2020
Messages
25
Office Version
  1. 2016
Platform
  1. Windows
Hello
In attached excel screen shots, in Col I (sheet 1), I want Col C value (from sheet 2), similarly in Col P (sheet 1) want Col D value( from Sheet 2). I am trying with variations of Columns function but not able to crack. I want to create formula in col B sheet 1 and drag it. I dont want to manually update formula in Col I and Col P ( and hence forth). Any help will be greatly appreciated.
 

Attachments

  • Sheet 1.png
    Sheet 1.png
    34 KB · Views: 14
  • Sheet 2.png
    Sheet 2.png
    18 KB · Views: 14
  • dragged formula in sheet 1 cols.png
    dragged formula in sheet 1 cols.png
    32.5 KB · Views: 13
awesome this is working included the reference sheet from your formula.

Rich (BB code):
=INDEX(AppView!2:2,,COLUMNS($B2:B2)*3.5-3.5+5) - INDEX(AppView!2:2,,COLUMNS($B2:B2)*3.5-3.5+9)
=INDEX(AppView!2:2,,COLUMNS($C2:C2)*3.5-3.5+6) - INDEX(AppView!2:2,,COLUMNS($C2:C2)*3.5-3.5+10)

I want to restate my understanding, now we are using the full rows from the reference sheet rather than the range.

One query,
BAU Actl Aug-14 is going to be in $DQ12 which is outside of the range that you used in the formula
Columns function is returning 117 or may be 113 , why excel is looking into DQ column..

Once again, thanks for your help,
Next I am diving into charting these numbers :)
 
Upvote 0

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.
Excel was not looking to DQ because the INDEX range only went to DN, but the formula was correctly calculating that the result should be coming from DQ, hence the error.
The calculation worked out that it would have been the 113th column in the INDEX range, however $I2:$DN2 only contains 110 columns.

Changing the formula to use full rows instead of a limited number of columns prevents the same error from occurring again, however it requires a slightly different calculation to work correctly, as you will see, the +1 at the end of the formula has been changed to the number of the column that holds the result of the first formula.
 
Upvote 0
Hello , not able to figure out the steps again, reference sheet moves 11 steps and refering sheets move 7 steps, what shud be the columns formula using index..
Forecast DASH v13.0.xlsx
H
35.0
49.0
515.0
620.0
716.0
ResourceView
Cell Formulas
RangeFormula
H3:H7H3=INDEX(PrjctForecast!3:3,,COLUMNS($Q2:Q2)*11/7-11/7+17)


Forecast DASH v13.0.xlsx
QRSTUVWXYZAAAB
2420555050000020
PrjctForecast
Cell Formulas
RangeFormula
Q24,AB24Q24=SUM(G24:P24)
 
Upvote 0
Using the formula from your post, I get 17, 28, 39, 50, 61, etc as I copy the formula right to columns H, O, V, AC, AJ.

The formula in H3 should actually be =INDEX(PrjctForecast!3:3,,COLUMNS($H3:H3)*11/7-11/7+17) but that wouldn't cause the problem that you are seeing.
 
Upvote 0
he formula in H3 should actually be =INDEX(PrjctForecast!3:3,,COLUMNS($H3:H3)*11/7-11/7+17) but that wouldn't cause the problem that you are seeing.
That was indeed the issue, I was referring to the PRjctForecast sheet columns rather than the parent sheets columns.
 
Upvote 0
Ideally the COLUMNS() range should refer to the cell holding the first formula.

Having it refer to something else would not make a difference unless you delete a column (as in right click and delete, not just use the delete key to empty the cells).
 
Upvote 0

Forum statistics

Threads
1,215,779
Messages
6,126,843
Members
449,343
Latest member
DEWS2031

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