+ Reply to Thread
Results 1 to 4 of 4

Need help with If statements and value formats

  1. #1
    Registered User
    Join Date
    06-13-2013
    Location
    Lydenburg
    MS-Off Ver
    Excel 2007
    Posts
    3

    Need help with If statements and value formats

    Hi I programmed a excel sheet that determines the price of a window blind, according to their size.

    Below is an example of a price table.
    ..............800........900........1000
    800.........price 1
    900......................price2
    1000..................................price3

    If a blind is 800 wide with a drop of 800 it returns the value
    "price 1".

    If a blind is 900 wide with a drop of 900 it returns the value
    "price 2".

    But for some reason if I enter a value between 900 and 1100 it returns the value "price 1" instead of the value "price 2".

    If I go above 1100 then it is works fine again.

    What am I doing wrong?
    Last edited by BouwerVa01; 06-13-2013 at 06:23 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Need help with If statements and value formats

    Please attach a sample workbook with expected output for better understanding


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    06-13-2013
    Location
    Lydenburg
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Need help with If statements and value formats

    BLIND QUOTE (Test).xlsm

    CRTL-Q open the userform.

    I think my problem lies in my format function.

    I used "format(range, 0#)" to get all values in the same format.
    Last edited by BouwerVa01; 06-13-2013 at 06:43 AM.

  4. #4
    Registered User
    Join Date
    06-13-2013
    Location
    Lydenburg
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Need help with If statements and value formats

    Any luck guys???

+ 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