+ Reply to Thread
Results 1 to 2 of 2

Adding 1 to a cell using IF

  1. #1
    Registered User
    Join Date
    07-29-2015
    Location
    Austin
    MS-Off Ver
    2013
    Posts
    1

    Adding 1 to a cell using IF

    My problem is that I need to add 1 to a cell if production 160000 units produced. So if 400000 units are produced 2 (1 for every 160000) is added to the cell.
    I came up with =O40+IF($N92>=$H40,$F40,0). Something to do with not using the correct operators. Any help is appreciated.

    John

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Adding 1 to a cell using IF

    Hi, welcome to the forum

    Perhaps something like this...
    =O40+INT($H40/160000)

    Not sure if I have the range correct, adjust as needed
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. [SOLVED] Formula for adding a percentage from one cell and adding the total of 2 others
    By Kandra in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-04-2013, 06:48 AM
  2. Replies: 2
    Last Post: 10-28-2013, 03:52 PM
  3. Replies: 0
    Last Post: 06-12-2013, 09:48 AM
  4. Replies: 4
    Last Post: 05-06-2013, 03:13 PM
  5. Replies: 5
    Last Post: 12-19-2012, 09:16 AM
  6. [SOLVED] Adding an if statement to vba and adding 1 onto the cell value
    By Nicola13 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-21-2012, 05:13 AM
  7. [SOLVED] Pulling cell contents from a different sheet / adding a static number to export from cell
    By jayinthe813 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-28-2012, 08:55 PM
  8. Adding Image into a excel cell and adding a hyperlink to the image
    By saravananiyyanar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2011, 04:16 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