+ Reply to Thread
Results 1 to 3 of 3

Thread: if statement

  1. #1
    Registered User
    Join Date
    09-06-2010
    Location
    irvine scotland
    MS-Off Ver
    Excel 2007
    Posts
    42

    if statement

    I am trying to say if cell d5 has the letters "wd" or "np" inserted into it as data then add 1000 to there total in o5.Do i use the if statement to do this ?
    Attached Files Attached Files

  2. #2
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,771

    Re: if statement

    if then any or all cell in a row could be wd or np =SUM(D5:M5)+1000*(COUNTIF(D5:M5,"wd")+COUNTIF(D5:M5,"np"))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    09-06-2010
    Location
    irvine scotland
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: if statement

    Works a treat many thanks, but still problems but working them out 1 by 1

+ 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.2.0