• Hi, I am the owner and main administrator of Styleforum. If you find the forum useful and fun, please help support it by buying through the posted links on the forum. Our main, very popular sales thread, where the latest and best sales are listed, are posted HERE

    Purchases made through some of our links earns a commission for the forum and allows us to do the work of maintaining and improving it. Finally, thanks for being a part of this community. We realize that there are many choices today on the internet, and we have all of you to thank for making Styleforum the foremost destination for discussions of menswear.
  • This site contains affiliate links for which Styleforum may be compensated.
  • STYLE. COMMUNITY. GREAT CLOTHING.

    Bored of counting likes on social networks? At Styleforum, you’ll find rousing discussions that go beyond strings of emojis.

    Click Here to join Styleforum's thousands of style enthusiasts today!

    Styleforum is supported in part by commission earning affiliate links sitewide. Please support us by using them. You may learn more here.

Really Dumb Open Office Question

Khayembii Communique

Distinguished Member
Joined
Apr 4, 2010
Messages
2,425
Reaction score
336
Basically what I'm trying to do is that I have a list of items (numbered 1 to 50) in Sheet 1. Each of these items has 3-4 columns of information, with the first column being the reference number.

Ref No. Column B Column C Column D
1 "info" "info" "info"
2 "info" "info" "info"
3 "info" "info" "info"

On sheet 2, I am trying to have Column A be an input for the reference number, and then columns B, C and D return the outputs in the same columns on the first sheet. In other words, you input the reference number in Column A on Sheet 2, and then in columns B-D on that same sheet it gives you the information for that reference number listed on Sheet 1.

Now I could do it with an If/Then statement, but considering that I have 50 reference numbers that would get really messy really quick. Isn't there an easier way to do this? There has to be something I'm missing.

I tried setting the output for Column B on Sheet 2 to:

=Sheet1.D(A2)

(A2 is the cell on that sheet where you would input the reference number). In other words, have the output cell's row number be directly conditional to the reference number, which seems easiest, but obviously the code I put in wasn't the correct terminology, or it's not possible at all.

I hope this makes sense, it's simple in concept but I'm having trouble explaining it. Anyone have any ideas?

EDIT: Basically I'm using Sheet 1 as a database and sheet 2 to access it and return the information for a given reference number listed in the database.
 

Khayembii Communique

Distinguished Member
Joined
Apr 4, 2010
Messages
2,425
Reaction score
336
NVM figured it out. Just had to use the =LOOKUP() function.
biggrin.gif
 

Khayembii Communique

Distinguished Member
Joined
Apr 4, 2010
Messages
2,425
Reaction score
336
**** nevermind that totally didn't work, it's still the same problem just now it's in the LOOKUP function WTFFFFF
 

Jr Mouse

Stylish Dinosaur
Dubiously Honored
Joined
Nov 18, 2009
Messages
31,117
Reaction score
29,946
5 star thread.
 

ginlimetonic

Senior Member
Joined
Mar 11, 2009
Messages
777
Reaction score
1
Ref No. Column B Column C Column D
1 "info" "info" "info"
2 "info" "info" "info"
3 "info" "info" "info"

=VLOOKUP(cell to lookup,$table$reference, column to lookup,FALSE)

i.e. for Col B,

=VLOOKUP(B1,$B$2:$D$4,2,false)

col c

=VLOOKUP(B1,$B$2:$D$4,3,false)

col d

=VLOOKUP(B1,$B$2:$D$4,4,false)

you can be tricky and embed functions within vlookup formula,

VLOOKUP(b1,defined range table, MATCH(header title, column headers, 0),false)
 

Featured Sponsor

How important is full vs half canvas to you for heavier sport jackets?

  • Definitely full canvas only

    Votes: 85 37.4%
  • Half canvas is fine

    Votes: 87 38.3%
  • Really don't care

    Votes: 24 10.6%
  • Depends on fabric

    Votes: 35 15.4%
  • Depends on price

    Votes: 36 15.9%

Forum statistics

Threads
506,467
Messages
10,589,526
Members
224,245
Latest member
Dreamerra
Top