+ Reply to Thread
Results 1 to 4 of 4

formula dependent on text in adjacent column

  1. #1
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    666

    formula dependent on text in adjacent column

    I have a datatable which has a column containing up to 25 different text codes (which are currency pairs).

    I need to insert a specific number (as seen in the attached example) in a second column. This number depends on the text in the first column.

    I suspect this is very simple but at the moment, not for me!

    Thank you very much.
    Attached Files Attached Files
    Last edited by jrtaylor; 10-07-2009 at 04:24 PM. Reason: solved

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: formula dependant on text in adjacent column

    Simplest solution...

    Create a table of your unique pairs - in left column the pair code, right column the factor, let's say for arguments sake this was in Y1:Z25

    You can then use VLOOKUP against the above table to retrieve the appropriate factor based on the code, eg:

    F10: =VLOOKUP($E10,$Y$1:$Z$25,2,0)
    copied down

    Going forward, by simply adjusting the lookup table factors and codes you can alter all of your calcs in F simultaneously.

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: formula dependant on text in adjacent column

    Well DKO beat me to the punch, but here's a working example.

    The lookup table was created using Advanced Filter.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  4. #4
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    666

    Re: formula dependent on text in adjacent column

    Thanks! Prob. Solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1