+ Reply to Thread
Results 1 to 5 of 5

Checking text across a range of cells

  1. #1
    Registered User
    Join Date
    10-09-2008
    Location
    UK
    Posts
    3

    Checking text across a range of cells

    Hello, I'm an Excel noob so this might be blindingly obvious but I've tried Help and Google, all to no avail.

    I have an Excel sheet set up with 6 columns:
    Col A contains a user-entered date.
    Cols B-E each contain a drop-down that the user can set to 1 of 4 options.
    Col F (I want) to show a date based on Col A & the results of the drop-downs.

    The drop-downs contain (in order of importance): "Immediate","Urgent","Routine" and "None". If any of them are set to "Immediate", the date in Col F should be Col A date+2 days, if any set to "Urgent" it should be Col A+14 days, any set to "Routine" it should be Col A+28 days and for None the field can remain empty.

    I can enter a formula in F2 that checks for B2's drop-down as follows:

    Please Login or Register  to view this content.
    which works perfectly for that column. I therefore thought I could just substitute each "B2" with "B2:E2" to check across all four columns but when I do I get "#VALUE!" in F2. Surely if it works in checking one column, it should be easy enough to check across 4 columns? I did have a workaround that I thought would work which included lots of nested IF's but I soon found out that Excel has a limit of 7 and it needs more than that (which seems a long-winded way to do it anyway).

    Am I missing something obvious here?
    Last edited by thebluemask; 10-09-2008 at 06:35 AM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Hi and welcome to the board
    What should happen if, say one cell is "Urgent", and another "Immediate" ?
    Should the formula only react to the highest priority?

  3. #3
    Registered User
    Join Date
    10-09-2008
    Location
    UK
    Posts
    3
    Hi Arthur,

    Yes, that's right - highest priority. So for example, if B2="Immediate" and C2="Routine", it should use "Immediate" (I assumed Excel would prioritise formula rules from left to right so I put them in that order).

  4. #4
    Forum Contributor
    Join Date
    07-23-2006
    Posts
    185
    Would it be something like?:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-09-2008
    Location
    UK
    Posts
    3
    Quote Originally Posted by additude View Post
    Would it be something like?:
    Please Login or Register  to view this content.
    You, sir/madam, are a lifesaver! Works like a charm.

+ 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. How do I Copy text only, not cells.
    By su_jumptd in forum Excel General
    Replies: 7
    Last Post: 06-13-2012, 12:56 AM
  2. Conditional Format for a Range of Cells
    By jonlemur in forum Excel General
    Replies: 2
    Last Post: 08-11-2007, 09:53 PM
  3. Checking for Blank in a range of cells
    By AnthonyB in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-04-2007, 07:27 PM
  4. Looping through rows in range AND comparing range cells
    By Damask in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-16-2006, 10:30 PM
  5. SUM nonblank cells from different range
    By edwardpestian in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-06-2006, 12:34 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