+ Reply to Thread
Results 1 to 24 of 24

combining formulas

  1. #1
    Forum Contributor
    Join Date
    06-12-2014
    Location
    Dubai U A E
    MS-Off Ver
    office 365
    Posts
    105

    combining formulas

    hi.
    I have a worksheet called master and another called test. The invoice no from the master account need to be transfered to at
    the inv column in the test account i have a helper column in the test sheet and using if function the the inv from the master sheet is trnsfered to the testsheet. is there any way that the helper column can be eliminated as still achiving my goal having the
    invoice no in serial order. I am using the aggregate funtion in the test sheet to get the invoice no in sequence order.
    tks
    Shamsu
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: combining formulas

    A2, copied across to b and down:
    =IFERROR(IFERROR(INDEX(Master!B:B,AGGREGATE(15,6,ROW(Master!$F$4:$F$14)/(Master!$E$4:$E$14=Test!$F$1),ROWS(D$2:D2))),INDEX(Master!B:B,AGGREGATE(15,6,ROW(Master!$F$4:$F$14)/(Master!$D$4:$D$14=Test!$F$1),ROWS(D$2:D2)-SUM(--(LEN($D$2:$D$11)>0))))),"")

    C2:
    =IFERROR(INDEX(Master!F:F,AGGREGATE(15,6,ROW(Master!$F$4:$F$14)/(Master!$D$4:$D$14=Test!$F$1),ROWS(C$2:C2)-SUM(--(LEN($D$2:$D$11)>0)))),"")

    D2:
    =IFERROR(INDEX(Master!F:F,AGGREGATE(15,6,ROW(Master!$F$4:$F$14)/(Master!$E$4:$E$14=Test!$F$1),ROWS(D$2:D2))),"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: combining formulas

    or a dyanmic array (all in one cell):

    =LET(V,Master!F4:F14,DD,Master!B4:C14,C,Master!E4:E14,D,Master!D4:D14,IFERROR(VSTACK(CHOOSE({1,1,0,2},FILTER(DD,C=$F$1),FILTER(V,C=$F$1)),HSTACK(FILTER(DD,D=$F$1),FILTER(V,D=$F$1))),""))
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    06-12-2014
    Location
    Dubai U A E
    MS-Off Ver
    office 365
    Posts
    105

    Re: combining formulas

    Hi Glen
    Tks for ur reply. I am trying the second formula but when I copied the formula down from A1 it gave a spill error. How to fix it . I tried what I know but no luck. Pls advice
    shamsu

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: combining formulas

    You do not need to copy it. Delete all results. Enter the formuka. It fills ALL cells in one go. No copy/paste. Just one cell.

  6. #6
    Forum Contributor
    Join Date
    06-12-2014
    Location
    Dubai U A E
    MS-Off Ver
    office 365
    Posts
    105

    Re: combining formulas

    Hi Glen
    Tks for ur prompt reply. I copied your formula into my worksheet some of which worked as required. but in some row 2 was blank
    and the data was shown in row 3 and in some no data was shown, pls advice

  7. #7
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,419

    Re: combining formulas

    Please uploud (a part of) your workbook with the unexpected results.

  8. #8
    Forum Contributor
    Join Date
    06-12-2014
    Location
    Dubai U A E
    MS-Off Ver
    office 365
    Posts
    105

    Re: combining formulas

    sorry pls find attched the worksheet
    Attached Files Attached Files

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: combining formulas

    OK. It was working fine, I had just forgotten to take into account what would happen if EITHER credit OR debit had no entries...
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 12-18-2022 at 05:03 AM.

  10. #10
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,419

    Re: combining formulas

    This formula also takes into account that the DEBET or CREDIT or both columns can be empty:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    06-12-2014
    Location
    Dubai U A E
    MS-Off Ver
    office 365
    Posts
    105

    Re: combining formulas

    Hi HansDouwe
    TKs your formula worked fine . some workbooks has#NA on it . how to remove it
    shamsu

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: combining formulas

    Did you check Post 9?

  13. #13
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,419

    Re: combining formulas

    Thanks for the feedback and rep .

    I can not reproduce #NA-errors with my formula even when there are no bookings at all.
    I think I've tested all possibilities.
    Did I overlooked something?

    Please upload your workbook with the #NA-error.

  14. #14
    Forum Contributor
    Join Date
    06-12-2014
    Location
    Dubai U A E
    MS-Off Ver
    office 365
    Posts
    105

    Re: combining formulas

    Hi
    Pls see the attached file. the worksheet is named saleem
    Shamsu
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    06-12-2014
    Location
    Dubai U A E
    MS-Off Ver
    office 365
    Posts
    105

    Re: combining formulas

    Hi Glen
    Yes I did and am using the amended formula tks

  16. #16
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: combining formulas

    Great! Thanks for that.

  17. #17
    Forum Contributor
    Join Date
    06-12-2014
    Location
    Dubai U A E
    MS-Off Ver
    office 365
    Posts
    105

    Re: combining formulas

    HiGlen
    A qucik question. Is it possible to sort the data carried to the other sheets in date order if it is not much trouble to you.
    if it can be done that would be an added bonus
    Shamsu

  18. #18
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: combining formulas

    Is this what you wanted? See purple cell on both sheets. I rearranged the formula as well, so you only have to adjust the range in ONE place (red):

    =LET(Z,SORT('G Journal'!A4:F14,2,1),rZ,SEQUENCE(ROWS(Z)),V,INDEX(Z,,6),DD,INDEX(Z,rZ,{2,3}),C,INDEX(Z,,5),D,INDEX(Z,,4),E,IFERROR(VSTACK(CHOOSE({1,1,0,2},FILTER(DD,C=$F$1),FILTER(V,C=$F$1)),IFERROR(HSTACK(FILTER(DD,D=$F$1),FILTER(V,D=$F$1)),"")),""),FILTER(E,INDEX(E,,1)<>"",""))
    Attached Files Attached Files

  19. #19
    Forum Contributor
    Join Date
    06-12-2014
    Location
    Dubai U A E
    MS-Off Ver
    office 365
    Posts
    105

    Re: combining formulas

    Hi Glen
    just checked ur sample file. in the cash in hand worksheet the oct 24 date should come after nov 22 and not after oct 22. can it be adjusted.
    tks

  20. #20
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: combining formulas

    In your ORIGINAL request... you SEPARATED debits and credits. Debits first and then credits. Was that just a coincidence? Do you want D & C mixed up... but in ascending order???

  21. #21
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: combining formulas

    What VERSION of O365 do you have?
    Attached Images Attached Images

  22. #22
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: combining formulas

    No reply. My next iteration...

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

  23. #23
    Forum Contributor
    Join Date
    06-12-2014
    Location
    Dubai U A E
    MS-Off Ver
    office 365
    Posts
    105

    Re: combining formulas

    HI Glen
    Sorry I did not reply earlier . I was out and just saw ur message. Using Microsoft 365. I do not mind the D& C being mixed up as long as they are in the right column. in blank sheets where there is no entry #clac message apprear.
    Tks for ur time and effort
    Shamsu

  24. #24
    Forum Contributor
    Join Date
    06-12-2014
    Location
    Dubai U A E
    MS-Off Ver
    office 365
    Posts
    105

    Re: combining formulas

    Hi Glen
    Tks Worked perfectly VERy much appreciated
    Shamsu

+ 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. combining two formulas
    By taker418 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 06-07-2013, 01:18 PM
  2. [SOLVED] Combining 3 formulas into one
    By clickclick in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-27-2013, 09:54 PM
  3. Combining two formulas
    By mrggutz in forum Excel General
    Replies: 13
    Last Post: 09-24-2010, 12:47 PM
  4. Combining IF and AND formulas
    By regularguy in forum Excel General
    Replies: 3
    Last Post: 09-14-2010, 07:21 PM
  5. Combining IF formulas
    By donyc in forum Excel General
    Replies: 4
    Last Post: 09-09-2010, 05:42 PM
  6. combining IF formulas
    By donyc in forum Excel General
    Replies: 2
    Last Post: 09-08-2010, 09:31 AM
  7. combining formulas
    By ericc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-24-2010, 08:26 PM
  8. [SOLVED] Combining two formulas
    By Khalil Handal in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-07-2005, 05:07 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