+ Reply to Thread
Results 1 to 4 of 4

Use IF function where value if not true is text

  1. #1
    Registered User
    Join Date
    11-21-2019
    Location
    australia
    MS-Off Ver
    2016
    Posts
    17

    Use IF function where value if not true is text

    Hi
    Im teaching myself excel and I need to be able to do the following calculation If Column A is Area 4 return $0.00 otherwise calculate $4000 for first 2000sqm in column b and then $100 for every 100sqm above 2000sqm. So for any value from 0-2000 it should return $4000, for any value above 2000 it should calculate $4000+ $100 for every 100sqm above 2000sqm. The Areas in column A could possibly change move within the list, but the square meterage is constant. eg What is is area 4 now might be in Area 7 later. It will always be Area 4 that should return 0.

    I'm not sure that IF is the best way to resolve this Does anyone have any advice?

    thanks
    Attached Files Attached Files

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Use IF function where value if not true is text

    Try: =IF(A2="Area4",0,IF(B2 < 2000,4000,4000+ROUNDDOWN((B2-2000)/100,0)*100))
    Click the * to say thanks.

  3. #3
    Registered User
    Join Date
    11-21-2019
    Location
    australia
    MS-Off Ver
    2016
    Posts
    17

    Re: Use IF function where value if not true is text

    Hi Ive just tried it and it works. How would I get it to work if it was $100 for anything above 2000. eg 2001-2100sqm would cost $4100, 2101-2199 sqm would cost $4200 etc

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

    Re: Use IF function where value if not true is text

    Just replace the rounddown with roundup in the formula you already have
    =IF(A2="Area4",0,IF(B2 < 2000,4000,4000+ROUNDUP((B2-2000)/100,0)*100))

+ 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] in this TRUE OR FALSE function, i want desired name instead of display true or false
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-15-2013, 06:44 PM
  2. [SOLVED] Find Text In Range With Part Of Text & Return True or False
    By tis28 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-30-2013, 09:35 PM
  3. Check if part of text is in cell, add text if true
    By schorrie in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-16-2013, 11:21 PM
  4. Replies: 4
    Last Post: 09-06-2012, 02:37 AM
  5. Replies: 3
    Last Post: 11-21-2011, 06:44 AM
  6. [SOLVED] Text function to pull true value
    By Piers 2k in forum Excel General
    Replies: 4
    Last Post: 03-22-2006, 07:00 AM
  7. Function to return True/False if all are validated as True by ISNU
    By Tetsuya Oguma in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-15-2006, 06:30 AM
  8. Create a function to return text if two logical functions are true
    By janeyt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-19-2005, 05:06 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