[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
Solved

# Vlookup with a repetitive data

Posted on 2013-01-08
Medium Priority
336 Views
Hi! This is my current basic formula: =VLOOKUP(\$C2,Structure!\$A\$2:\$C\$979,3,FALSE)

how do I need to adjust the formula if data in column C remains the same 14 times before it switches to another number that repeats 14 times (or goes 14 rows down)

thanks
0
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 4
• 3

LVL 13

Expert Comment

ID: 38756545
=VLOOKUP(indirect("\$C"&2+14*D1),Structure!\$A\$2:\$C\$979,3,FALSE)

^ Something like that should work

D1 put 0
D2 put 1
D3 put 2 (and so on)
0

Author Comment

ID: 38756630
nope it did not work... I am attaching file for your reference: tab "Data" column B and A need to be mapped to the Info tab. Thanks!!
Vlookup-with-repetitive-data.xlsx
0

LVL 13

Expert Comment

ID: 38756702
See attached. The 'D' rows has to be vertical
Vlookup-with-repetitive-data.xlsx
0

LVL 93

Expert Comment

ID: 38756722
There was really nothing wrong with your original formula.

Using your sample attachment, I used this formula in Data!A3...

=VLOOKUP(\$C3,Info!\$A\$2:\$C\$979,2,FALSE)

and this in Data!B3...

=VLOOKUP(\$C3,Info!\$A\$2:\$C\$979,3,FALSE)

I then copied those formulas down through A13790:B13790

0

Author Comment

ID: 38756778
Shanan212: your formula does not work...you can use the file that you populated with the suggested formula...you can see how it changes...the idea is that one store is assigned to one region. this is what you have:
Region      Store
21      1
2      1
21      1
2      1
102      1
7      1
21      1
84      1
104      1
2      1
5      1
100      1
5      1
56      1
but they all should have region 21. Please refer to the attached file. I put filter in the "Info" tab to show that one store = one region. The thing is that in tab Data store numbers repeat 14 times before it moves on to the next number.
Vlookup-with-repetitive-data.xlsx
0

LVL 13

Expert Comment

ID: 38756839
Ok I am confused here though.

What result do you want to see? Something like this?

YOU WANT THIS? (A) OR      THIS (B)
21      1            21      1
21      1                  1
21      1                  1
21      1                  1
21      1                  1
21      1                  1
21      1                  1
21      1                  1
21      1                  1
21      1                  1
21      1                  1
21      1                  1
21      1                  1
21      1                  1
3      2             3      2
3      2                   2
3      2                   2
3      2                   2
3      2                   2
3      2                  2
3      2                  2
3      2                  2
3      2                  2
3      2                  2
3      2                  2
3      2                  2
3      2                  2
3      2                  2
0

Author Comment

ID: 38756887
option A
0

LVL 13

Accepted Solution

Shanan212 earned 1200 total points
ID: 38757582
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
###### Suggested Courses
Course of the Month14 days, 17 hours left to enroll