+ Reply to Thread
Results 1 to 18 of 18

Testing for values

  1. #1
    Registered User
    Join Date
    12-10-2007
    Location
    Trondheim, Norway
    Posts
    89

    Testing for values

    Hi!

    Have an excelsheet with many colums with different values. If the value is between a range I would like to dislpay a text in a new colum. Excample below:


    Test value result
    10 to 19 "A"
    20 to 29 "B"
    30 to 39 "C"

    etc..etc.


    best regards
    Elad

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Testing for values

    Create table with 10,20,30 etc in Column A and A,B,C etc in column B

    with "lookup" value in C1

    in D1

    =IFERROR(INDEX($B$1:$B$100,MATCH($C$1,$A$1:$A$100,1)),"Below limit")

    any value < 10 will give "Below limit" message: change as require
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    12-10-2007
    Location
    Trondheim, Norway
    Posts
    89

    Re: Testing for values

    Hi -thanks for quick replay!

    It seems like it is working Thanks a lot!

    Best regards
    Elad

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Testing for values

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

  5. #5
    Registered User
    Join Date
    12-10-2007
    Location
    Trondheim, Norway
    Posts
    89

    Re: Testing for values

    One question left.... It seems that the values in Colum C, wich in my sheet already are there, has to be entered again before it change the value in Colum D?

    F9 does not help, and also checked that formula is set to atutomatic update.....

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Testing for values

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Testing for values

    If "C" is a data column i.e your values are in C1,C2 etc then id D1

    =IFERROR(INDEX($B$1:$B$100,MATCH($C1,$A$1:$A$100,1)),"Below limit")

    Copy down

  8. #8
    Registered User
    Join Date
    12-10-2007
    Location
    Trondheim, Norway
    Posts
    89

    Re: Testing for values

    The formula working fine, but it only works after I enter the number in colum C (D in testsheet).

    In the test sheet, the colum is different, but I guess you will understand that

    Regards
    Elaf
    Attached Files Attached Files
    Last edited by elad; 05-23-2018 at 02:08 AM.

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Testing for values

    in D2

    =IF(ISNUMBER(MID($C2,FIND(".",$C2)+1,2)+0),MID($C2,FIND(".",$C2)+1,2)+0,0)

    assumes numbers are always 2 digits

  10. #10
    Registered User
    Join Date
    12-10-2007
    Location
    Trondheim, Norway
    Posts
    89

    Re: Testing for values

    Ok maybe - but how will that give the correct text in E2, and what is the different as long as the value in D2 is correct?

    Regards
    Asbjørn

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Testing for values

    Have you actually tried the above????

  12. #12
    Registered User
    Join Date
    12-10-2007
    Location
    Trondheim, Norway
    Posts
    89

    Re: Testing for values

    Yes.... se attachment. And it is also good to know why and not only just copying the formula so I can learn from it

    Regards
    Elad
    Attached Files Attached Files

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Testing for values

    See attached: formula converts the TEXT to NUMBER/GENERAL format so you can match with your table.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    12-10-2007
    Location
    Trondheim, Norway
    Posts
    89

    Re: Testing for values

    Perfect!

    If there is no .xx (ie. C:\ProgramData\Hundegger\SC\P18-0011.bvx) could it display the text for "up to 10". In my case the text "Takstol"?

    Best regards
    Asbjørn

  15. #15
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Testing for values

    Make first entry in your table 0 (A2) / Takstol (B2)

  16. #16
    Registered User
    Join Date
    12-10-2007
    Location
    Trondheim, Norway
    Posts
    89

    Re: Testing for values

    Of course... Thanks a lot - great help!!


    Regards
    Elad

  17. #17
    Registered User
    Join Date
    12-10-2007
    Location
    Trondheim, Norway
    Posts
    89

    Re: Testing for values

    Hi again, one more issue has appeared....
    The file will for a while have both old projects (C:\ProgramData\Hundegger\SC\bvx\31232.BVX) and new projects (C:\ProgramData\Hundegger\SC\P18-0011.37.bvx) in column C.

    Is it possible to map all rows that not has P at the beginning (i.e .....bvx\31232.bvx ) to a spesific task (Ie. "Standard Task" in column E) and a spesific project (P18-0009 in column O)?

    See attached file.
    Attached Files Attached Files

  18. #18
    Registered User
    Join Date
    12-10-2007
    Location
    Trondheim, Norway
    Posts
    89

    Re: Testing for values

    Hi - anyone with a suggestion here ?


    Regards
    Asbjørn

+ 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. Testing many values on a table
    By luisfmb in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-08-2014, 08:04 PM
  2. Testing for blank values from a function
    By colonelbobaloo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-23-2013, 08:03 PM
  3. IF testing for match with range of values.
    By rganz in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-12-2010, 02:45 PM
  4. Automatically testing values...
    By Cheshire in forum Excel General
    Replies: 6
    Last Post: 08-22-2009, 11:08 AM
  5. HELP, PLEASE - Testing Multiple Values
    By wingale in forum Excel General
    Replies: 4
    Last Post: 04-14-2006, 05:52 PM
  6. Testing Values of Cells
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-20-2005, 04:05 PM
  7. [SOLVED] Testing a string array for any values
    By Chris W. in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-21-2005, 11:06 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