Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8005355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:12:27+00:00 2026-06-04T17:12:27+00:00

Say I have two spreadsheets. One of the spreadsheets has a table like this:

  • 0

Say I have two spreadsheets.

One of the spreadsheets has a table like this:

  **Sheet 1**
  A        B        C        D
1 Name     Age      Rank     Number

2 George   22       Master   12

3 Paul     21       Acolyte  22

4 Jimmy    32       Horse    33
 
5 Agnor    12       Cheetah  90

The other spreadsheet looks like this:

  **Sheet 2**
  A        B        C        D
1 Name     Age      Rank     Number

2 George   

3 Paul     21                22

4 Agnor    

I want to copy Ages from sheet 1 to sheet 2. So I would copy George, Paul, and Agnor’s age, and ignore Jimmy. Which function should I use to copy data based on an existing value?

Is there something like:

foreach VAL in Sheet1
if(Sheet1.Name.EqualsIgnoreCase(Sheet2.Name))
{
    Sheet2.Age = Sheet1.Age;
}

I looked this up, and a lot of people are saying to use VLookup, but I can’t figure out how that would apply.

EDIT

I found a similar resolved question (No idea HOW I missed it) here: Compare and copy data between worksheets

However, I’m still a little shaky on how to implement this (I’m using Excel 2007).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T17:12:29+00:00Added an answer on June 4, 2026 at 5:12 pm

    vlookup would be the easiest way to go.
    I will use cell B2 in sheet2 as the reference to try to explain the function
    =VLOOKUP(A2,Sheet1!$A$2:$D$5,2,FALSE)
    The first parameter is the data you are using for a lookup – you may want to change that to $A2 if you copy the formula around the sheet
    The second parameter is where the data is that excel needs to find the value you referenced in the first parameter – use dollar signs. The data doesn’t tend to move
    The third parameter tells excel what info to return – the 2 means give me the 2nd piece of data
    The last parameter tells excel if it can use a close match (FALSE for an exact match)

    Now to follow Excel and see what it returns…..

    First, it looks for George in the data (it knows it has to be an exact match from the fourth parameter)
    Next, it finds the row George -- 22 -- Master -- 12 and gives the function the second value (22 in this case)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I have two classes like this: class A{ private static Random random =
Say I have two complex nested arrays in PHP, like these: $a = array(
Say I have two tables called A (fields: id, phase, name) and B(fields: id,
Say I have two tables, user and comment . They have table definitions that
Say I have two sets of XML elements: <One/> <Two/> <Three/> And <A/> <B/>
Say I have two different cpp files. Both declare classes with the same name,
Let´s say I have two branches, default and mybranch, I would like to write
Say I have two constructors: A = function () { this.x = 'x'; };
Say I have two web servers, one local development and one live. Under SVN
Say I have two std::set<std::string> s. The first one, old_options , needs to be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.