+ Reply to Thread
Results 1 to 4 of 4

Having trouble with modifying If formula

  1. #1
    Registered User
    Join Date
    10-29-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    10

    Having trouble with modifying If formula

    Hi everyone,

    I have the following formula that switches between adding and multiplying two cells depending on the contents of ResultsUD!$B$105.

    I need to put another rule into the If statement that checks if the cell G12 contains ChinaC5 then add the two cells, otherwise follow the formula below.

    =IF(ResultsUd!$B$105=0,(IF(ResultsUd!$B$602>5,(D66/1000)*G66,(D66*G66))),(E66+G66))

    Would really appreciate some help as I'm just going around in circles!

    Thanks

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Having trouble with modifying If formula

    use the addresses of these "add the two cells" in the formula:

    =IF(G12="ChinaC5",firstcell+secondcell,IF(ResultsUd!$B$105=0,IF(ResultsUd!$B$602>5,(D66/1000)*G66,D66*G66),E66+G66))
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    10-29-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Having trouble with modifying If formula

    Quote Originally Posted by Kaper View Post
    use the addresses of these "add the two cells" in the formula:

    =IF(G12="ChinaC5",firstcell+secondcell,IF(ResultsUd!$B$105=0,IF(ResultsUd!$B$602>5,(D66/1000)*G66,D66*G66),E66+G66))
    You're a start, thanks very much

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Having trouble with modifying If formula

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. Replies: 2
    Last Post: 02-25-2009, 02:09 AM
  2. Help Modifying this Formula ....
    By Mhz in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 07-30-2006, 06:40 AM
  3. Modifying A Formula
    By Mangesh Yadav in forum Excel Formulas & Functions
    Replies: 72
    Last Post: 09-06-2005, 07:05 PM
  4. Modifying A Formula
    By carl in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  5. Modifying A Formula
    By Mangesh Yadav in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 09-06-2005, 06:05 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