Results 1 to 10 of 10

Assistance in updating formula for DATE functions - eg DateValue

Threaded View

  1. #1
    Registered User
    Join Date
    04-15-2013
    Location
    Australia
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2301 Build 16.0.16026.20002) 64-bit
    Posts
    57

    Assistance in updating formula for DATE functions - eg DateValue

    To Whom It May Concern

    I would like some assistance writing/amending a formula, that uses all three

    * DATEVALUE

    * IF(AND(OR(

    and

    "AND"

    functions.

    I've attached a spreadsheet (containing only the necessary data, nothing else), however, I will explain how I intend to use it.

    Firstly, two Sheets are in the attachment: (titled), "Income & Cash or Debit Expenses" & "Pharmaceuticals List".

    On the "Income & Cash or Debit Expenses" sheet, go to Cells A7 and/or B7.

    In Cell A7, the formula looks like this:

    =(IF($B$7=(((((""))))), (((((""))))), (IF('Income & Cash or Debit Expenses'!$A$1=(((((""))))), (((((""))))), (IF(DAY('Income & Cash or Debit Expenses'!$A$3)<>365, (IF(AND(OR(MONTH('Income & Cash or Debit Expenses'!$A$3)={3,4,5,6,7,8,9})), "Food and Groceries*; * Maximum spend per week, $100.00, and Medicines/Pharmacy (Refer: 'Pharmaceuticals List' sheet, for more information.), (Add extra, $50.00*2/f cash withdrawal for Adelaide Oval Cash Card (incorporating AFL & AFLW))", ((IF('Income & Cash or Debit Expenses'!$A$1=(((((""))))), (((((""))))), (IF(DAY('Income & Cash or Debit Expenses'!$A$3)<>365, (IF(AND(OR(MONTH('Income & Cash or Debit Expenses'!$A$3)={8,9,10,11})), "Food and Groceries*; * Maximum spend per week, $100.00, and Medicines/Pharmacy (Refer: 'Pharmaceuticals List' sheet, for more information.), (Add extra, $50.00*2/f cash withdrawal for Adelaide Oval Cash Card (incorporating AFL & AFLW))", ((IF('Income & Cash or Debit Expenses'!$A$1=(((((""))))), (((((""))))), (IF(DAY('Income & Cash or Debit Expenses'!$A$3)<>365, (IF(AND(OR(MONTH('Income & Cash or Debit Expenses'!$A$3)={1,2,12})), "Food and Groceries*; * Maximum spend per week, $100.00, and Medicines/Pharmacy (Refer: 'Pharmaceuticals List' sheet, for more information.), (Add extra, $50.00/f cash withdrawal for personal use.)", ("")))))))))))))))))))))))

    and, in Cell B7, the formula looks like this:

    =(IF('Income & Cash or Debit Expenses'!$A$1=(((((""))))), (((((""))))), (IF(DAY('Income & Cash or Debit Expenses'!$A$3)<>365, (IF(AND(OR(MONTH('Income & Cash or Debit Expenses'!$A$3)={3,4,5,6,7,8,9})), (SUM(100*2)+(SUM('Pharmaceuticals List'!$G$39)+(25*2)+(30*2))+(SUM(100*2)+(SUM('Pharmaceuticals List'!$G$39)+(25*2)+(30*2)))*'Income & Cash or Debit Expenses'!$B$5), (IF(AND(OR(MONTH('Income & Cash or Debit Expenses'!$A$3)={8,9,10,11})), (SUM(100*2)+(SUM('Pharmaceuticals List'!$G$39)+(25*2)+(30*2))+(SUM(100*2)+(SUM('Pharmaceuticals List'!$G$39)+(25*2)+(30*2)))*'Income & Cash or Debit Expenses'!$B$5), (IF(AND(OR(MONTH('Income & Cash or Debit Expenses'!$A$3)={12,1,2})), (SUM(100*2)+(SUM('Pharmaceuticals List'!$G$39)+(25*2))+(SUM(100*2)+(SUM('Pharmaceuticals List'!$G$39)+(25*2)))*'Income & Cash or Debit Expenses'!$B$5)))))))))))

    From this point, here's what I want to do, and would like assistance with:

    In Cell B7, I want to amend the formula above, to recalculate to show ONLY on/between a specific date period. For example:

    =IF(DATEVALUE>={13/4}, (SUM(100*2)+(SUM('Pharmaceuticals List'!$G$39)+(25*2)+(30*2))+(SUM(100*2)+(SUM('Pharmaceuticals List'!$G$39)+(25*2)+(30*8)))*'Income & Cash or Debit Expenses'!$B$5), IF(DATEVALUE<={16/4}, (SUM(100*2)+(SUM('Pharmaceuticals List'!$G$39)+(25*2)+(30*2))+(SUM(100*2)+(SUM('Pharmaceuticals List'!$G$39)+(25*2)+(30*8)))*'Income & Cash or Debit Expenses'!$B$5), AND (IF(AND(OR(MONTH('Income & Cash or Debit Expenses'!$A$3)={3,4,5,6,7,8,9})), (SUM(100*2)+(SUM('Pharmaceuticals List'!$G$39)+(25*2)+(30*2))+(SUM(100*2)+(SUM('Pharmaceuticals List'!$G$39)+(25*2)+(30*8)))*'Income & Cash or Debit Expenses'!$B$5)

    [HINT: Change "ONLY" (30*2) to show (30*8), to occur ONLY between dates 13/4 - 16/4 inclusive.]

    So, in other words, the formula will be =(SUM(100*2)+(SUM('Pharmaceuticals List'!$G$39)+(25*2)+(30*8))+(SUM(100*2)+(SUM('Pharmaceuticals List'!$G$39)+(25*2)+(30*8)))*'Income & Cash or Debit Expenses'!$B$5), only when date value is =>{13/4} or <={16/4}.

    Otherwise, if date is NOT specifically between (dates) 13/4 - 16/4 (inclusive), BUT is still within the MONTHS (of) {3,4,5,6,7,8,9}, the calculation is (then) =(SUM(100*2)+(SUM('Pharmaceuticals List'!$G$39)+(25*2)+(30*2))+(SUM(100*2)+(SUM('Pharmaceuticals List'!$G$39)+(25*2)+(30*2)))*'Income & Cash or Debit Expenses'!$B$5)



    Footnote (1): Where an asterisk (*) appears before/after a word, eg "Food and Groceries*; * Maximum (etc)", in this context, the asterisk (*) is NOT referring to the "multiply" function.

    Footnote (2): "*'Income & Cash or Debit Expenses'!$B$5" (in this context, the asterisk (*) IS referring to the "multiply" function. (Multply (by) SheetName (and) Cell. [Manually change 'Income & Cash or Debit Expenses'!$B$5, to read either 0% or 10%, and this will change automatically on all other sheets. In Australia, the "Goods and Services Tax (GST)" is set at a maximum of 10%.]

    Footnote (3): In Australia, the date is written using the DD/MM/YYYY format, so as per the date example above, 13 April (DD/MM only), is written as 13/4, NOT 4/13 (April 13; US/international format).

    Thank you to anyone who assists me with this, and I have attempted to explain this as best I can; I apologise in advance for any confusion. Your assistance is most graciously welcomed and appreciated.

    Matthew

    By the way, I'm having trouble uploading the attachment. Please help.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 02-21-2023, 06:21 AM
  2. [SOLVED] Assistance with DATEVALUE Lookup in a table
    By equinox1974 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-26-2017, 11:33 PM
  3. Need assistance with a Date Formula
    By raider573 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-19-2017, 03:55 PM
  4. [SOLVED] Formula assistance needed to sum data based on anniversary date and month date
    By lilsnoop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-28-2012, 11:18 PM
  5. Date or DateValue
    By ccsmith in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-09-2011, 07:24 AM
  6. date formula assistance req'd
    By Bri in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-05-2006, 05:20 PM
  7. [SOLVED] HOW DO I ENTER THIS FORMULA TO CONVERT TEXT TO DATE =DATEVALUE(,
    By Carter in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-15-2006, 10:20 AM

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