+ Reply to Thread
Results 1 to 9 of 9

If Statement? Subtracting(adding)

  1. #1
    Forum Contributor
    Join Date
    01-24-2013
    Location
    NY,NY
    MS-Off Ver
    MS 365
    Posts
    250

    If Statement? Subtracting(adding)

    Good morning,

    I have a list of over 10,000 entries and I would like to know a formula that would minus 100 from any amount over 300 and minus 30 from any number under 300?
    Any ideas, thanks for the help!

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: If Statement? Subtracting(adding)

    =if(a1>300,a1-100,a1-30)

    You have not said what sahould happen to 300 exactly -30 or minus 100

    regards

    Dav

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,833

    Re: If Statement? Subtracting(adding)

    assuming in column a starting at row 2

    in B2 put

    =If(A2>300,A2-100, A2-30)

    if you want to change the original numbers in one go , you will need a macro
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Contributor
    Join Date
    01-24-2013
    Location
    NY,NY
    MS-Off Ver
    MS 365
    Posts
    250

    Re: If Statement? Subtracting(adding)

    My apologies, let me recap: Minus 100 from anything over 300 and minus 30 for anything between 200-300. Anything below 200 will not be touched. Please let me know if this makes sense. Again my apologies, thanks again for all your help!

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,585

    Re: If Statement? Subtracting(adding)

    Try

    =If(A2>300,A2-100, IF(A2>=200,A2-30,A2))

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,833

    Re: If Statement? Subtracting(adding)

    =If(A2>300,a2-100,if(a2>=200,A2-30, A2))

  7. #7
    Forum Contributor
    Join Date
    01-24-2013
    Location
    NY,NY
    MS-Off Ver
    MS 365
    Posts
    250

    Re: If Statement? Subtracting(adding)

    The responses were phenomenal, individuals with your skill sets makes this forum worth while.
    I truly appreciate the time everyone takes to help noobies like myself out.

    Thanks again everyone! Worked out perfect!

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,833

    Re: If Statement? Subtracting(adding)

    you are welcome

  9. #9
    Forum Contributor
    Join Date
    01-24-2013
    Location
    NY,NY
    MS-Off Ver
    MS 365
    Posts
    250

    Re: If Statement? Subtracting(adding)

    Please disregard entry---
    Last edited by thursday140; 12-02-2016 at 11:41 AM.

+ 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. Adding and subtracting formulae
    By KOBBY123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-17-2016, 05:27 PM
  2. [SOLVED] Subtracting a max from a min if statement
    By robc79 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-25-2016, 07:37 AM
  3. [SOLVED] If statement subtracting 2 cells
    By Stephen R in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-05-2014, 09:12 AM
  4. Adding subtracting times
    By jays35 in forum Excel General
    Replies: 1
    Last Post: 08-23-2012, 10:26 PM
  5. Adding/Subtracting Times
    By controlfreak in forum Excel General
    Replies: 2
    Last Post: 09-09-2009, 04:20 AM
  6. Adding and subtracting
    By nathanv3223 in forum Excel General
    Replies: 1
    Last Post: 01-30-2009, 12:10 AM
  7. adding and subtracting 1.54 hrs
    By Tascard in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-06-2008, 05: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