+ Reply to Thread
Results 1 to 7 of 7

Pricing Check - based on a dynamic date range

  1. #1
    Registered User
    Join Date
    10-19-2012
    Location
    York
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    59

    Pricing Check - based on a dynamic date range

    Hi

    I've tried to post this twice but i computer seems to be messing up, so apologies if this re-appears mulitple times!

    I have a table with pricing for certain products with a specific date range, to the right of the table in columns are a list of dates with the prices by date.
    What i need a formula to do, is to flag if any of the values in that date range are incorrect (regardless of which column within that range)

    The first column of dates will always be the date that the file was opened =today()

    i could do it with a set range and an average cost, but as i will be running this check daily, i need it to be dynamic, as everyday forward the range will get smaller,

    any help i'll gladly take!!

    thanks
    Adi
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,694

    Re: Pricing Check - based on a dynamic date range

    Try this:
    Please Login or Register  to view this content.
    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Pricing Check - based on a dynamic date range

    Hi

    Not sure that i got correctly your goal but give a try to this formula in CF rules.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    How can you use Conditional Formating.

    --In Excel 2007 and 2010, Conditional Formatting is in the Styles group on the Home tab. In Excel 2003, Conditional Formatting is on the Format menu. See here how you can work using CF.
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    10-19-2012
    Location
    York
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    59

    Re: Pricing Check - based on a dynamic date range

    thanks alansidman, hopefully trying to keep away from VBA were possible for now, i may well come back to it though!

    Fotis1991, which will be helpful for identifying were the error is, ideally i need it to bring a true/ false or anyother comment into the P6 price error field (F3 / F4 etc)
    so that we can drop into into another worksheet to run off this.
    Unless anyone knows of a way to count coloured cells, within that date range, i've never got that side of excel to work!

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Pricing Check - based on a dynamic date range

    In F3 and copy down?

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-19-2012
    Location
    York
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    59

    Re: Pricing Check - based on a dynamic date range

    Thanks Fotis,
    that worked a treat, knew i was overthinking it, thats a massive help!!

    Adi

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Pricing Check - based on a dynamic date range

    You are welcome and thanks for the feedback.

+ 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. Dynamic range based on date
    By GW-5000 in forum Excel General
    Replies: 1
    Last Post: 01-30-2013, 06:44 PM
  2. [SOLVED] Dynamic named range based on a start date and end date
    By Gary Lockton in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-06-2012, 07:26 PM
  3. Summing values based on a dynamic date range
    By welchs101 in forum Excel General
    Replies: 2
    Last Post: 09-27-2011, 07:00 PM
  4. Multiple lookup based on date range pricing
    By posttoamit in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-18-2011, 05:52 PM
  5. overtime formula based on dynamic date range?
    By kalika in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 09-06-2005, 09:05 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