+ Reply to Thread
Results 1 to 6 of 6

Need help with "if " Function

  1. #1
    Registered User
    Join Date
    11-15-2018
    Location
    Arizona
    MS-Off Ver
    Office 365 Business
    Posts
    3

    Need help with "if " Function

    I am trying to get the highlighted Labor & Material formulas to work with the "if" function.
    On line 5 i am trying to add the Material with G&A,Profit&Tax but if there is Labor then i want to only add half of the G&A,Profit & Tax. I can get some of it to work but my formulas are not working if there is labor valule. I want to do the same for the Labor also.

    so for Materal Total = 3500 + 732 = 4233 but if there was a Labor Value i would only want Half of the G&A,Profit,Tax. So same funtion for Labor. I have attached the Work Sheet.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,601

    Re: Need help with "if " Function

    O5:
    Please Login or Register  to view this content.
    if labor > 0 divide by 2, else divide by 1
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    11-15-2018
    Location
    Arizona
    MS-Off Ver
    Office 365 Business
    Posts
    3

    Re: Need help with "if " Function

    Ben,
    please be patient with me on this I am a little green with some of this. I tried to input this formula and its not working on the highlighted T5 cell or U5 cell. I just get the 314 value.

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,901

    Re: Need help with "if " Function

    Try this in U5:

    =P5+IF(O5=0,Q5,Q5/2)

  5. #5
    Registered User
    Join Date
    11-15-2018
    Location
    Arizona
    MS-Off Ver
    Office 365 Business
    Posts
    3

    Re: Need help with "if " Function

    Ok this seams to work some what. But if there is a 0 Value in the P Column I would like it to put a 0 value in the U Column. This would be the same in the T Column.

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,601

    Re: Need help with "if " Function

    My mistake, that formula in post #2 was meant for Q5 not O5...
    Edit:
    I just realized that in columns T & U, you have written your formula wrong:
    =IF(,O5=0,O5+Q5/2)
    You are missing the logical test condition; i.e., the comma before O5. It should have been:
    Please Login or Register  to view this content.
    Because you omitted your test condition, your IF's are returning the FALSE value.
    Attached Files Attached Files
    Last edited by protonLeah; 11-16-2018 at 04:57 PM.

+ 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: 5
    Last Post: 02-05-2019, 12:03 AM
  2. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  3. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  4. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  5. [SOLVED] Variable "sheet-name" and "range-name" wanted in INDEX/MATCH-function
    By Fiebuls in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-01-2012, 04:09 PM
  6. [SOLVED] Please add a "sheet" function like "row" and "column" functions
    By Spreadsheet Monkey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2005, 12:15 PM
  7. [SOLVED] Replace "insert function" with "edit formula" button in fourmula b
    By 13brian in forum Excel General
    Replies: 0
    Last Post: 08-24-2005, 04:05 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