+ Reply to Thread
Results 1 to 9 of 9

Alter this array formula

  1. #1
    Forum Contributor
    Join Date
    01-18-2012
    Location
    nr Salisbury, UK
    MS-Off Ver
    Excel 2010
    Posts
    126

    Alter this array formula

    I have this array formula that all works as intended when value to be retrieved is in column ‘S’, however the value may be in column ‘T’, how do I tweak this formula to retrieve it when it is.

    (When ‘S’ = value, ‘T’ will always = ”” and when ‘S’= ””, ‘T’ will always = value)


    Please Login or Register  to view this content.

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,222

    Re: Alter this array formula

    More helpful if you attach sample file with before (original) and after (required output).


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Forum Contributor
    Join Date
    01-18-2012
    Location
    nr Salisbury, UK
    MS-Off Ver
    Excel 2010
    Posts
    126

    Re: Alter this array formula

    Just preping one

  4. #4
    Forum Contributor
    Join Date
    01-18-2012
    Location
    nr Salisbury, UK
    MS-Off Ver
    Excel 2010
    Posts
    126

    Re: Alter this array formula

    Hi AVK
    Have attached Workbook.

    To quickly explain N9 – N23 is a small part of the INPUT section and N24 on down is Summary/breakdown

    You will see in R10,11 & 16 there are payments to ’Hudson Stores’. One from the ‘Bank’ & 2 in ‘Cash’. If you now look down at W72 you will see that the BANK payment is showing but not the CASH
    Attached Files Attached Files
    Last edited by julhs; 01-21-2017 at 10:15 AM. Reason: file not attached

  5. #5
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,222

    Re: Alter this array formula

    as per your formula you mentioned range column "S7" to "S23" (for Bank) you cash payment in column "T". Kindly change accordingly.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,145

    Re: Alter this array formula

    Try

    =SUMIF($R$7:$R$23,$W$69,$S$7:$S$23)+SUMIF($R$7:$R$23,$W$69,$T$7:$T$23)

  7. #7
    Forum Contributor
    Join Date
    01-18-2012
    Location
    nr Salisbury, UK
    MS-Off Ver
    Excel 2010
    Posts
    126

    Re: Alter this array formula

    Hi AVK

    Thanks for your time.

    Yes that is the simplest thing to do in many ways. However I will still need a ‘TOTAL’ for ‘Cash Payments and that would be simple enough to achieve with another formula. But I was trying to see if by making alterations to the existing array I could get the desired outcome, so more an academic question really.

    Any further thoughts?


    Hi John,
    I have a little time now to have a look at what you suggested, many thanks
    Last edited by julhs; 01-22-2017 at 05:07 AM.

  8. #8
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,222

    Re: Alter this array formula

    Look attach file. In this file using sumifs formula. one additon in column "N72" & "N73" cell use "DataValidation"
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    01-18-2012
    Location
    nr Salisbury, UK
    MS-Off Ver
    Excel 2010
    Posts
    126

    Re: Alter this array formula

    Thank you both for your help. From your suggestions have come up with a solution that works for me,

    a) have a ‘Total Cash’ figure to reconcile the ‘Petty Cash’
    b) and not have blank cells/missing figures in the ‘Summary/Breakdown’ columns.
    Attached Files Attached Files

+ 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. Can a custom function alter the formula of its own cell?
    By frikost in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-30-2014, 09:48 AM
  2. Is it possible to alter chart formula to include indirect?
    By rhgq in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-24-2013, 03:24 AM
  3. [SOLVED] formula returns 0 instead of #N/A.... i want to alter this
    By R.Sloan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-26-2013, 10:44 AM
  4. Hide Formula and cannot alter
    By johnph in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-20-2012, 10:18 AM
  5. Using Array to alter multiple sheets at once
    By Brelin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-12-2011, 09:14 AM
  6. Macro to alter a variable formula
    By gakusei4 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-04-2008, 05:34 PM
  7. Alter value in one cell alter value in multiple cells
    By Bryan Noqw in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-11-2008, 05:31 AM
  8. macro to alter a formula
    By Crispy1974 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2007, 10:42 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