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 7410633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:15:49+00:00 2026-05-29T06:15:49+00:00

I know the title isn’t informative at all, but I had no idea how

  • 0

I know the title isn’t informative at all, but I had no idea how to sum up my question. I have 2 spreadsheets, one of them 400+ words paired with a number for each word and the other one has has the text that I will be using. So the first spreadsheet looks like this:

Column A Column B

afds 0

dshs 1

dhid 2

. .

. .

. .

dgsrs 456

And the second spreadsheet looks something like this:

Column A Column B

dhid afds

dshs dgsrs

etc. etc.

I would like to get the second spreadsheet to display the numbers that are assigned to the strings in the first spreadsheet. So I would eventually like to end up with a spreadsheet that looks like this:

Column A Column B

2 (used to be dhid) 0 (used to be afds)

1 (used to be dshs) 456 (used to be dgsrs

(The comments in brackets is just to explain, I don’t want them in the final spreadsheet)

So I started doing find&replace (find a string in the second spreadsheet and replace it with the value that is assigned to it in the first spreadsheet), but I know that there must be a script for this. I am not extremely familiar with any language, but so far I have been able to run simple scripts in languages I hadn’t seen before, so if you know any solution to this, please let me know, I don’t care what programming language it is in, I can google a way to run it as long as it runs on mac os x (c compiler installed).

Thanks in advance!

  • 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-05-29T06:15:50+00:00Added an answer on May 29, 2026 at 6:15 am

    While you could write a script to do this, the use of a translation table is common enough to be supported in many spreadsheet formula languages. In Excel-flavoured languages — I’ll use OpenOffice on the Mac, although this works with Numbers as well — you can use the function VLOOKUP. Its calling syntax in OO looks like

    VLOOKUP( valueToSearchFor ; tableToSearchIn ; columnIdentifier ; isTableSorted)
    

    Probably easier to show it, so:
    vlookup example

    On the left hand side I put your translation table. In the centre were the cells to be translated. And on the right I wrote the formula VLOOKUP(D3; $A3:$B6; 2; 0), which translates into “look for the value of cell D3 in the translation table in the fixed region from A3-B6, use the second column as the values, and the table isn’t sorted so don’t try to take shortcuts while searching”. Then I simply copied that cell from F3 to the F3:G4 region, to match the shape of the central data columns.

    BTW, I can never remember which programs are happy with semicolons and which ones need commas, so you may need to change that.. Seaching for VLOOKUP and whatever program you use should give you all the tutorials you need. I think modern Excel even automates the process.

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

Sidebar

Related Questions

I know the title isn't very elaborate, but I have tried this multiple times
I know the question title isn't the best. Let me explain. I do a
I don't know which title I should use for this question. I have a
i didn't really know how to title this question, but here's a thing that
I am sorry for possible misleading about the title, but I have no idea
From the title I've put the question can seem very obvious... but it isn't
Well, i know the title isn't very specific, but i couldn't find a better
I know the title isn't the most descriptive, but I can't think of a
well, i know the title isn't the best, but i'll be as clear as
I know this subjet isn't new at all but i'm going to be crazy

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.