+ Reply to Thread
Results 1 to 6 of 6

Excel Function for checking values in 3 columns and returning a value

  1. #1
    Registered User
    Join Date
    04-24-2017
    Location
    Berlin. Germany
    MS-Off Ver
    Office 2015
    Posts
    19

    Excel Function for checking values in 3 columns and returning a value

    Hi,

    I currently have the case that my staff populates columns in excel that deviate from recommendations, that my excel gives them based on the values they enter.

    I would like to facilitate my checking work by adding a function that assesses if there is a deviation between the actual data provided and the recommendation given.

    it sounds easy, but it is not because the values that can be populated by my staff are strings and not really numbers.

    Example attached.

    Thanks for your help in advance.
    Kian
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Excel Function for checking values in 3 columns and returning a value

    I think we need more example data than the single row that you have attached - then we can look for the type of variations that can occur.

    Please re-attach, with say 10 or 20 example lines of data.

    Pete

  3. #3
    Registered User
    Join Date
    04-24-2017
    Location
    Berlin. Germany
    MS-Off Ver
    Office 2015
    Posts
    19

    Re: Excel Function for checking values in 3 columns and returning a value

    Hi Pete,

    I attached the updated excel which includes a mapping table. Hope that helps.

    A function for the first line item would help me already as I could then replicate it.

    Regards
    Kian
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-24-2017
    Location
    Berlin. Germany
    MS-Off Ver
    Office 2015
    Posts
    19

    Re: Excel Function for checking values in 3 columns and returning a value

    ok, lets put it another way:
    i could use the following function:
    =IF(ISNUMBER(SEARCH(J3,AP3)),A1,"FALSE")

    The problem is however, this function checks if the value "4" (J3) is part of the value 4+;5;5+;6;6+ (AP3). As 4 is different from 4+ this function fails to recognize it. So is there a possibility to define an excel function which checks if the exact string in cell J3 matches the content in cell AP3?

  5. #5
    Registered User
    Join Date
    04-24-2017
    Location
    Berlin. Germany
    MS-Off Ver
    Office 2015
    Posts
    19

    Re: Excel Function for checking values in 3 columns and returning a value

    seriously, nothing?

  6. #6
    Registered User
    Join Date
    04-24-2017
    Location
    Berlin. Germany
    MS-Off Ver
    Office 2015
    Posts
    19

    Re: Excel Function for checking values in 3 columns and returning a value

    ok, I solved it by myself.

    Turns out that SEARCH and FIND functions cannot help, as they will not look for an exact string within another cell. So in my case the values 5 and 5+ would be both treated as 5. This caused headaches.

    the workaround I found was the following function which combines SEARCH and LEFT. Both forced the SEARCH function to look for an exact match within another cell.
    =ISNUMBER(SEARCH(left(K3,2),AX3))

+ 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] Checking for keywords defined in lists and returning given values
    By Nbisgaard in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-20-2015, 04:54 AM
  2. [SOLVED] Checking for 4 duplicate values and remove columns
    By keis386 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-15-2013, 05:56 AM
  3. Checking for single value, returning Multiple values
    By English_Bloke82 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-11-2013, 01:31 PM
  4. Replies: 0
    Last Post: 09-15-2012, 02:56 AM
  5. Checking for values in fltered columns
    By e1504 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2012, 07:51 PM
  6. Checking values in two columns
    By Cmorgan in forum Excel General
    Replies: 2
    Last Post: 04-07-2011, 03:25 PM
  7. Replies: 2
    Last Post: 10-28-2010, 04:16 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