+ Reply to Thread
Results 1 to 4 of 4

Trying to match two cells to obtain $ dollar value from a third cell

  1. #1
    Registered User
    Join Date
    12-29-2020
    Location
    Florence, SC
    MS-Off Ver
    2019
    Posts
    4

    Trying to match two cells to obtain $ dollar value from a third cell

    Fellow Excelers,

    I created a alpha-numeric generator in excel. It takes drop down inputs and builds the string based upon the inputs with each character representing a material or color. An alpha-numeric string example looks like this: 1A41A3CSA1856 and it resides in cell F6 on my spreadsheet. Now I want it to match the same alpha-numeric string (1A41A3CSA1856) that resides in Z12 so any time the two cells match, it would bring up cell Z8 that contains a price value of $7,797. idea being, when I generate an alpha numeric string, there would be the same existing string to match and bring up the associated price. Really looking for help building a VBA that woulddo it.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Trying to match two cells to obtain $ dollar value from a third cell

    Are you required to use VBA? I'm not sure I understand the details, but it feels like a basic lookup task, for which Excel has some very workable lookup functions:

    1) A MATCH() function will find the alpha-numeric string in a vector/range MATCH(F6,$A$12:$AZ$12,0) will tell you what column/position your string is found in.
    2) An INDEX() function will return the corresponding value from a different column/row/vector =INDEX($A$8:$AZ$8,MATCH(...)) will search row 12 for the string in F6, return the column number, then return the corresponding value from row 8.
    (help files for these functions are in the lookup and reference functions here: https://support.microsoft.com/en-us/...rs=en-us&ad=us

    If you are required to use VBA for this, these functions (as well as the .cells() property) are available in VBA for performing the same sequence of operations in VBA. It really depends on what the VBA is needing to do (that the regular worksheet functions are not doing).
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    12-29-2020
    Location
    Florence, SC
    MS-Off Ver
    2019
    Posts
    4

    Re: Trying to match two cells to obtain $ dollar value from a third cell

    I've tried those functions and perhaps not correctly inputting them. I figure a pictures is worth a thousand words so I will to upload a picture to give a better idea. I'm only trying to match two cells to obtain the value
    from a third cell. So when the number from P9 matches (P9 isnt a constant value, it will change depending upon the drop down boxes) Z12, I would get Z8 as a price in U9

    Untitled.jpg
    Last edited by D.G. DeGennaro; 12-29-2020 at 05:02 PM.

  4. #4
    Registered User
    Join Date
    12-29-2020
    Location
    Florence, SC
    MS-Off Ver
    2019
    Posts
    4

    Re: Trying to match two cells to obtain $ dollar value from a third cell

    Over thought it=if(f6=Z12,Z8,0) But what I appreciate is the help form you folks. Trust me, as I continue down this excel path I may hopefully ask less sillier questions.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Count and assign dollar value from multiple cells into one total cell
    By michael3426 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-21-2020, 01:08 PM
  2. Autopopulate cell with $DOLLAR based on another cells TEXT
    By ALANA.A in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 04-17-2019, 11:28 AM
  3. Replies: 4
    Last Post: 03-03-2015, 08:56 AM
  4. Replies: 5
    Last Post: 03-04-2014, 10:01 AM
  5. Match two string cells and obtain code from a cell in another column
    By chz9392000 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-04-2013, 08:30 AM
  6. [SOLVED] Using LOOKUP, MATCH, INDEX to obtain cell value from data table
    By rfernandes in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-05-2012, 05:31 PM
  7. Replies: 1
    Last Post: 05-01-2008, 11:24 AM

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