+ Reply to Thread
Results 1 to 3 of 3

Complicated "IF" statement/VBA?

  1. #1
    Registered User
    Join Date
    08-06-2009
    Location
    Wisconsin
    MS-Off Ver
    Excel 2003
    Posts
    6

    Complicated "IF" statement/VBA?

    Hi,

    I'd like the following functionality in a spreadsheet I'm working on. Can a function/code/whatever be written to accomplish this? I know that the format below won't work; I simply wrote it that way to illustrate what I want.

    Thanks for the help.


    If G6 = S, THEN B3+H6 and display total in S3; If G6 =V, THEN C3+H6 and display total in T3; If G6 = P, THEN D3+H6 and display total in U3.

    I have no idea how to do this myself (even after researching various sites) and I do not have the ability to write create VBA myself, so any guidance would be much appreciated.
    Last edited by ChrisCione2020; 08-06-2009 at 10:27 PM. Reason: Misc. Updates

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Is this possible? Expert help needed.

    Welcome to the forum].

    Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Complicated "IF" statement/VBA?

    In S3 enter formula: =IF(G6 = "S",B3+H6,"")

    In T3 enter formula: =If(G6 ="V",C3+H6,"")

    In U3 enter formula: =If(G6 = "P",D3+H6,"")

+ 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