+ Reply to Thread
Results 1 to 4 of 4

Unable to get an If statement to work correctly

  1. #1
    Registered User
    Join Date
    05-15-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    67

    Unable to get an If statement to work correctly

    Hi -
    I'm trying to do the following:
    if c7 = Yes
    and c9 = biweekly
    then 1300/26

    if c7 = Yes
    and c9 = weekly
    then 1300/52

    however the following code doesn't seem to work properly, but for weekly only.
    Please Login or Register  to view this content.
    Any suggestions?

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,179

    Re: Unable to get an If statement to work correctly

    Try this ...

    =IF(C7="Yes",IF(C9="Weekly",1300/52,IF(C9="Bi-weekly",1300/26,0)),0)

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Unable to get an If statement to work correctly

    Try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    05-15-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    67

    Re: Unable to get an If statement to work correctly

    Perfect! Thanks so much!

+ 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. Not getting correct count of sent mails
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-19-2015, 11:33 PM
  2. Unable to sort dates in column correctly
    By pcdots in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-08-2015, 10:19 AM
  3. Unable to get cells to add and move macro correctly
    By Hedron in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-04-2013, 09:45 PM
  4. Moving Formula into VBA with WorksheetFunction: Unable to get it correctly
    By DavidRoger in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-21-2013, 03:53 PM
  5. IF statement wont work correctly
    By dannyshezo in forum Excel General
    Replies: 10
    Last Post: 11-04-2011, 01:02 PM
  6. [SOLVED] Unable to get if statement to work
    By fialko in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-16-2011, 03:47 AM
  7. [SOLVED] Can't get the find statement to work correctly
    By sc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-01-2006, 07:10 PM

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