+ Reply to Thread
Results 1 to 9 of 9

Associate value with text

  1. #1
    Registered User
    Join Date
    06-20-2017
    Location
    Chile
    MS-Off Ver
    2016
    Posts
    5

    Question Associate value with text

    Hi. I am a novice user in Excel and I am trying to find dental color. For that, there are standard colors (16 standard colors), which are expressed as A1, A2, A3, etc. Each of these colors has a Lab value (a color space similar to RGB), as expressed in the attached table.

    Now there is an E DELTA formula, which is expressed as:

    delta-e-equation.jpg

    This formula compares the Lab values of the initial color to compare with the Lab of the standard colors. The color with lower DELTA E corresponds to the tooth color.

    I have managed in Excel to calculate the 16 DELTA E and find the minimum DELTA E resultant, but I do not know how to associate that lower DELTA E value with the standard color in a cell.

    Can you do it instead of looking visually?

    Thanks!!

    PS.: In the example, I know that 4.64 value is MIN so my desired shade is A4, but i want to do that automatically.
    Attached Files Attached Files
    Last edited by andres91; 06-20-2017 at 05:06 PM.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Associate value with text

    maybe this: =MIN(SQRT((G3-C4:C19)^2+(H3-D4:D19)^2+(I3-E4:E19)^2)) array entered
    Attached Files Attached Files
    Last edited by sandy666; 06-20-2017 at 07:57 PM.

  3. #3
    Registered User
    Join Date
    06-20-2017
    Location
    Chile
    MS-Off Ver
    2016
    Posts
    5

    Re: Associate value with text

    Wow, that's more efficient, but i need to associate that min value with column B and show that in a cell.

    Example: that min value 4.64 correspond to A4 because they correspond to the same row.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Associate value with text

    something like that?
    =INDEX($B$4:$B$19,MATCH($H$7,$K$4:$K$19,0))
    or
    =INDEX($B$4:$B$19,MATCH(MIN(SQRT((G3-C4:C19)^2+(H3-D4:D19)^2+(I3-E4:E19)^2)),$K$4:$K$19,0)) array entered

    (I changed layout so formulas here and in the file are not the same but similar )
    Attached Files Attached Files
    Last edited by sandy666; 06-21-2017 at 12:22 AM.

  5. #5
    Registered User
    Join Date
    06-20-2017
    Location
    Chile
    MS-Off Ver
    2016
    Posts
    5

    Re: Associate value with text

    Thanks for replying. Why the formula has $ ? I tried to enter and it says it's an error in formula.

    żIn spanish it would be:

    =INDICE(B4:B19,COINCIDIR(MIN(RAIZ((G3-C4:C19)^2+(H3-D4:D19)^2+(I3-E4:E19)^2)),K4:K19,0))

  6. #6
    Registered User
    Join Date
    06-20-2017
    Location
    Chile
    MS-Off Ver
    2016
    Posts
    5

    Re: Associate value with text

    Thanks for replying. Why the formula has $ ? I tried to enter and it says it's an error in formula.

    żIn spanish it would be:

    =INDICE(B4:B19,COINCIDIR(MIN(RAIZ((G3-C4:C19)^2+(H3-D4:D19)^2+(I3-E4:E19)^2)),K4:K19,0))

    but it says error.

    Sorry my novice

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Associate value with text

    what kind of error ? #N/A?
    I said: array entered = Control+Shift+Enter
    but try this: =INDEX($B$4:$B$19,MATCH(MIN(SQRT((H3-C4:C19)^2+(I3-D4:D19)^2+(J3-E4:E19)^2)),SQRT((H3-C4:C19)^2+(I3-D4:D19)^2+(J3-E4:E19)^2),0)) Control+Shift+Enter

    es: =INDICE($B$4:$B$19;COINCIDIR(MIN(RAIZ((H3-C4:C19)^2+(I3-D4:D19)^2+(J3-E4:E19)^2));RAIZ((H3-C4:C19)^2+(I3-D4:D19)^2+(J3-E4:E19)^2);0)) Control+Shift+Enter
    on my attachment

    ps. I don't know how is: Control, Shift, Enter in Spanish
    Attached Files Attached Files
    Last edited by sandy666; 06-21-2017 at 12:36 AM.

  8. #8
    Registered User
    Join Date
    06-20-2017
    Location
    Chile
    MS-Off Ver
    2016
    Posts
    5

    Re: Associate value with text

    Wow!!! Thanks, that really works. I see my error was writing "," instead of ";" after B4:B19. I didn't know about array. I tried without control+shift+enter and it said N/A, like you said. Now I know about arrays.

    Thanks again!!

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Associate value with text

    You are welcome

    If that takes care of your original question, please click Add Reputation then select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. [SOLVED] Associate text with number value (& more)...
    By LFC2014 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-02-2014, 06:31 AM
  2. associate text with date
    By brendanmarie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-26-2013, 06:44 PM
  3. Text to Row instead of to column comma separated and associate related cells
    By oahmadi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-16-2013, 03:51 PM
  4. [SOLVED] vba code or formula assistance to associate a date, text, and value to a summary report.
    By lilsnoop in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-01-2013, 10:52 AM
  5. Associate Cells
    By djedjridoo in forum Excel General
    Replies: 1
    Last Post: 11-26-2011, 02:47 PM
  6. Associate a word with a value?
    By Weasel in forum Excel General
    Replies: 1
    Last Post: 01-09-2007, 12:08 PM
  7. ASSOCIATE number TO VALUE
    By zsozi in forum Excel General
    Replies: 2
    Last Post: 07-30-2006, 01:25 PM
  8. Associate name with email
    By jswafa in forum Excel General
    Replies: 2
    Last Post: 03-10-2005, 04:06 PM

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