+ Reply to Thread
Results 1 to 5 of 5

If and Mid function

  1. #1
    Registered User
    Join Date
    11-14-2007
    Posts
    3

    If and Mid function

    Hi All,

    I'm just a newbie here so please forgive me if this question has been asked before - for this I didn't actually know where to start looking for help.

    Just to start here is the layout of the sheet:

    A | B | C | D | E | F |
    1 | 14DC | Nguyen Van | Hiep | 180000 | |
    2 | 02TK | Ha Van | Khoa | 50000 | |
    3 | 10DK | Le Hanh | Nga | 120000 | |
    4 | 01TK | Nguyen Van | Nam | 50000 | |

    As a heads-up, column B=district, C&D are the surnames and first names respectively, E=wage, F=allowance.

    The question is: Those who live in the district (column B) in which the third letter is "D" i.e in this case '14DC' & '10DK' are given an allowance (column F) of 300,000 and the others are zero. Is there a formula or function I can enter for column F that will detect the third letter 'D' in column B and assign 300,000 in column F in its matching row?

    Thanks,
    Bill.

  2. #2
    Registered User
    Join Date
    11-14-2007
    Posts
    3

    oops

    I tried to match the columns when writing the post but they don't line up when sending the post through. Just try to follow the letters with the respective columns.

    Thanks,
    Bill.

  3. #3
    Registered User
    Join Date
    10-29-2007
    Posts
    38
    Forgive the notation bu you should get the idea.

    =IF(MID(RC[-4],3,1)="D",300000,0)
    Richard Walker

    For training and consultancy visit www.imits.co.uk

  4. #4
    Registered User
    Join Date
    06-11-2007
    Location
    Nonthaburee Province, Thailand
    MS-Off Ver
    MS Office 2003 to MS Office 2010
    Posts
    82
    Quote Originally Posted by Badger101
    Forgive the notation bu you should get the idea.

    =IF(MID(RC[-4],3,1)="D",300000,0)
    Badger101 Write formula IN R1C1 Style, so I will convert IN ABC Style

    At F1 use the below formula:

    Please Login or Register  to view this content.
    N. Yauvasuta
    Power User Excel.

  5. #5
    Registered User
    Join Date
    11-14-2007
    Posts
    3

    Awesome

    Thanks for that!

    Bill.

+ 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