+ Reply to Thread
Results 1 to 2 of 2

Simple Ifelse code to return %change between current and previous purchases shows #value

  1. #1
    Registered User
    Join Date
    06-18-2015
    Location
    Boston, MA
    MS-Off Ver
    07 and 10
    Posts
    1

    Simple Ifelse code to return %change between current and previous purchases shows #value

    VBA percent price change.JPG
    http://imgur.com/Hx79pkX
    http://imgur.com/BeefCiE

    New to this site so I tried to put a few different ways for the images to show up. This is a simplified version of what I was trying to do at work. I am new to excel and just want to create a function that shows the change between a current part order (If it is ordered) and the most recent before that. Just used the if and Ifelse functions. It works for some but for others returns #VALUE. Any ideas what I have done wrong? Thanks!

    Also all the numbers are formatted as such and not as text.

    Please Login or Register  to view this content.
    Attached Images Attached Images
    Last edited by -DoesNotCompute-; 06-18-2015 at 09:17 PM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,095

    Re: Simple Ifelse code to return %change between current and previous purchases shows #val

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    If posting code please use code tags, see here.

+ 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. UserForm with that shows Previous Week Data and allows you to update current week
    By hicks1ch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-22-2014, 09:47 AM
  2. [SOLVED] the simple code shows error
    By anilg0001 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2013, 02:35 AM
  3. [SOLVED] the simple code shows error
    By anilg0001 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-15-2013, 02:35 AM
  4. How to change current syntax to have ActiveSheet.Previous.Select
    By clemsoncooz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-30-2012, 10:38 AM
  5. Using a IF / IFELSE statment to change a cells format
    By Steve_al in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-12-2009, 11:54 PM

Tags for this Thread

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