+ Reply to Thread
Results 1 to 3 of 3

If statement

  1. #1
    Forum Contributor
    Join Date
    05-08-2005
    Location
    Australia
    MS-Off Ver
    excel 2019
    Posts
    112

    If statement

    i am not sure if i use if statement with the or etc.

    cells a1
    b2


    in cell c2 - if cell a1 has the name "andrew" i want cell c2 to be "monday"
    if cell a1 has the name "john" i want cell c2 to be "tuesday"
    if cell a1 has the name "george" i want cell c2 to be "wednesday"


    thanks

    andrewm

  2. #2
    Registered User
    Join Date
    05-28-2004
    Posts
    21
    Hello Andrew
    This is the formula that I would use. Hope this helps.

    =IF(A1="andrew","Monday",IF(A1="John","Tuesday",IF(A1="george","Wednesday","")))

  3. #3
    Registered User
    Join Date
    05-10-2005
    Posts
    16
    hi andrew, nuver's solution will work fine.
    but if you have a long list of names you may want to use VLOOKUP

    rgds,

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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