+ Reply to Thread
Results 1 to 2 of 2

Formula to insert text in cell based on cryteria

  1. #1
    Forum Contributor
    Join Date
    03-08-2018
    Location
    Denmark
    MS-Off Ver
    2016 for Windows
    Posts
    413

    Formula to insert text in cell based on cryteria

    I need some help with som this formula in a cell.
    =IF(AND($J15-NOW()>=0;$J15-NOW()<=3);"test1";"");IF(AND($J15-NOW()>=4;$J15-NOW()<=6);"test2";"");IF(AND($J15-NOW()>=7;$J15-NOW()<=9);"test3";"")

    I have some conditional formating to color the Row if it meets the criteria. But I also need a TEXT in one of the cells based on that criteria. I have 4 cryteria.

    Does this make any sense :-)

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,150

    Re: Formula to insert text in cell based on cryteria

    No.... not much!!

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

+ 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. Replies: 5
    Last Post: 03-21-2017, 10:30 PM
  2. Formula to insert text in a cell based on the date range of another cell
    By MTC2016 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-23-2016, 09:36 AM
  3. Change values in rows based on cryteria in column A
    By Marq555 in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 02-06-2015, 02:48 AM
  4. lock and insert formula in a cell based on selection of text in another cell
    By alirazafazal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-01-2014, 06:08 AM
  5. Formula to identify part of a text in cell from range of cells & insert adjacent cell text
    By Novicebutnotforlong in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-19-2013, 02:11 AM
  6. I need a formula to insert a specific value based on a specif text
    By karthik220988 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-12-2013, 06:12 AM
  7. Insert row with certain text based on value in a cell in Column A
    By bholabhala in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-16-2011, 05: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