Author Topic: Microsoft Excel Experts?  (Read 313 times)

0 Members and 1 Guest are viewing this topic.

Offline pinnies4me

  • Administrator
  • Trade Count: (+5)
  • *****
  • High Score Initials:
  • Forum Posts:
  • Victoria
Microsoft Excel Experts?
« on: August 10, 2011, 12:57:58 AM »
I have two spread sheets, one with certain data (A) and codes it matches (B).

In another spread sheet I have the same data (B) with information for that data (C).

What I want to achieve is for the data (C) to be copied across to align with (A), the link being (B).

Any excel experts on the forum that could help?
“If you wanna escape, go up to a pinball machine. There’s a magic button on the front that takes you to a world under the glass and makes the the rest of the universe disappear.”

Offline swinks

  • Trade Count: (+18)
  • ******
  • High Score Initials:
  • Forum Posts:
  • Lake Macquarie, NSW
Re: Microsoft Excel Experts?
« Reply #1 on: August 10, 2011, 06:15:49 AM »
Hi there, if it is a formula it is a little more tricky but still possible, if it is purely information it is relatively easy and if it database related I am not experienced in it myself so do not know how my advice would impact you, sorry.

Before you start, I would "save as" spreadsheet A n B as another name so you keep your original and can modify the second keeping the stress levels down if things go pear shaped.

To transfer the information to spreadsheet A n B, prepare the column that want to dump it into if it is in-between. Then go to spreadsheet B n C and simply select all the cells you want to copy over and hit copy. Go back to spreadsheet A n B and select the top left cell to paste your column C info in and it will dump the info in. Remember you may have some variables in spacing so some copy and pasting may be needed.

If there are formulas I have just re-written the first line and then copied to all lines below.

Hope that helps or even on the right track.

PM me if you like me to have a look if the info is not to case sensitive. Or post a few screen shots of a dummie scanario to show what you are trying to do.
https://swinks.com.au

for pinball parts (reproduction & mods)
for pinball t-shirts

Offline chillie

  • Trade Count: (+1)
  • ****
  • Forum Posts:
Re: Microsoft Excel Experts?
« Reply #2 on: August 10, 2011, 11:02:28 AM »
Nick,
Look up concatenate function this will do what you need

Offline Belac

  • Administrator
  • Trade Count: (0)
  • *****
  • High Score Initials:
  • Forum Posts:
  • Geelong, VIC.
Re: Microsoft Excel Experts?
« Reply #3 on: August 10, 2011, 11:29:05 AM »
I have two spread sheets, one with certain data (A) and codes it matches (B).

In another spread sheet I have the same data (B) with information for that data (C).

What I want to achieve is for the data (C) to be copied across to align with (A), the link being (B).

Any excel experts on the forum that could help?

You need to use the VLOOKUP function. This will lookup data in another sheet/workbook, and return the data you require based on a link.

For example in spreadsheet 1 you have the following:
A     B
001  BBB
002  MM
003  TAF
004  GNR
005  TAF

and in spreadsheet 2 you have the following:

A     B (column B, but the data you're calling "C" in your example)
GNR  Gun's n' Roses
MM   Medieval Madness
BBB   Big Bang Bar
TAF  The Addams Family

To copy the data (C) into spreadsheet 1 to align with A, linking on B you need to add a formula to spreadsheet 1.

=VLOOKUP($B1,'C:\excel\[spreadsheet2.xls]Sheet1'!$A$1:$B$4,2,0)

$B1 in this case is BBB, GNR etc. It is searching the table array specified (the range A1 - B4 of Sheet1 in the file c:\excel\spreadsheet2.xls) and returning the data from column 2 in this array, which is "Big Bang Bar", Guns n' Roses etc.

If the data is all in same excel file but on different 'sheets', you could just use =VLOOKUP($B1,Sheet2!$A$1:$B$4,2,0)

By copying this formula into a column on spreadsheet 1, you will get the following:

A     B      C
001  BBB   Big Bang Bar
002  MM   Medieval Madness
003  TAF  The Addams Family
004  GNR  Guns n' Roses
005  TAF  The Addams Family

This allows for duplicates and does not require the data in spreadsheet 2 to be in the same order as the data in spreadsheet 1.

Hopefully I understood the question correctly!

Offline swinks

  • Trade Count: (+18)
  • ******
  • High Score Initials:
  • Forum Posts:
  • Lake Macquarie, NSW
Re: Microsoft Excel Experts?
« Reply #4 on: August 10, 2011, 11:37:47 AM »
cool...
I am by no means an expert and just learnt something.
https://swinks.com.au

for pinball parts (reproduction & mods)
for pinball t-shirts

Offline pinnies4me

  • Administrator
  • Trade Count: (+5)
  • *****
  • High Score Initials:
  • Forum Posts:
  • Victoria
Re: Microsoft Excel Experts?
« Reply #5 on: August 10, 2011, 12:37:33 PM »
Wow, thanks guys, I think Belac's covers it - I'll give that a go tonight!
“If you wanna escape, go up to a pinball machine. There’s a magic button on the front that takes you to a world under the glass and makes the the rest of the universe disappear.”

Offline Belac

  • Administrator
  • Trade Count: (0)
  • *****
  • High Score Initials:
  • Forum Posts:
  • Geelong, VIC.
Re: Microsoft Excel Experts?
« Reply #6 on: August 10, 2011, 02:09:12 PM »
cool...
I am by no means an expert and just learnt something.

I don't consider myself an expert either! I knew you needed a vlookup to get data from other sheets/workbooks so i googled it to refresh my knowledge on how it worked. Glad i did as it looks useful and i've learnt something too!

Wow, thanks guys, I think Belac's covers it - I'll give that a go tonight!

No worries, if i haven't explained the formula well enough for your scenario let me know and i'll try to clarify it..

Offline ajlaird

  • Trade Count: (0)
  • ******
  • Forum Posts:
  • Greensborough, Melbourne
  • Go Ahead, Make My Day
Re: Microsoft Excel Experts?
« Reply #7 on: August 10, 2011, 07:14:50 PM »
Yep, VLOOKUP should do the job - just used it myself yesterday!

Offline spook

  • Trade Count: (+1)
  • ***
  • Forum Posts:
  • Brisbane, QLD
Re: Microsoft Excel Experts?
« Reply #8 on: August 20, 2011, 12:03:22 PM »
Hey pinnies4me .... did you get your Excel challenge sorted out?  If not, let me know and I'll lend a hand.
Wanted: Another Williams Flash

Offline pinnies4me

  • Administrator
  • Trade Count: (+5)
  • *****
  • High Score Initials:
  • Forum Posts:
  • Victoria
Re: Microsoft Excel Experts?
« Reply #9 on: August 20, 2011, 01:49:22 PM »
Hey pinnies4me .... did you get your Excel challenge sorted out?  If not, let me know and I'll lend a hand.

All sorted, thanks for the offer though Spook!

This is for a data base for a project for one of my businesses, needs a web based search function for a new site. Had files with one set of data linking to the areas I needed, and another with the search data that matched data in the first file. I'll post a link when its finished. Thanks to all that helped.
“If you wanna escape, go up to a pinball machine. There’s a magic button on the front that takes you to a world under the glass and makes the the rest of the universe disappear.”