Hello! First time post, but this forum has been an amazing resource. I'm a little new to the formula/coding aspect of Excel, so apologies in advance.
I'm attempting to get two separate concatenation formulas into a somewhat complex macro. I ended up using the record macro function, but there is a constant error when it gets to pasting the concatenation formula.
The relevant formulas are as follows:
=CONCATENATE("BETWEEN ",TEXT(IF(MIN(E:E) > 0, MIN(E:E), ""),"MM/DD/YYYY")," AND ",TEXT(IF(MAX(E:E) > 0, MAX(E:E), ""),"MM/DD/YYYY"),","," ",K2," ",L2," RECEIVED ",COUNTIFS(I:I,"MONEY TRANSFER RECV",Y:Y,"<>AUTOMATED",Y:Y,"<>MONEYGRAM")," TRANSACTIONS FROM X SENDERS IN X, TOTALING ","$",SUMIFS(J:J,I:I,"MONEY TRANSFER RECV",Y:Y,"<>AUTOMATED"),", AND SENT"," ",COUNTIF(I:I,"MONEY TRANSFER SEND")," TRANSACTIONS TO X RECIPIENTS IN X TOTALING ","$",SUMIFS(J:J,I:I,"MONEY TRANSFER SEND",Y:Y,"<>AUTOMATED"),".")
=CONCATENATE("BETWEEN ",TEXT(IF(MIN(E:E) > 0, MIN(E:E), ""),"MM/DD/YYYY")," AND ",TEXT(IF(MAX(E:E) > 0, MAX(E:E), ""),"MM/DD/YYYY"),", ",K2," ",L2," CONDUCTED"," ",COUNTIFS(I:I,"*",I:I,"<>Product Type",Y:Y,"<>AUTOMATED")," TRANSACTIONS TOTALING ","$",SUMIFS(J:J,Y:Y,"<>AUTOMATED",Y:Y,"<>MONEYGRAM>")," WITH X COUNTERPARTIES IN ",Stringconcat(", ",Ao2:Ao1000), ".")
Even after the VBA auto-formatting. I've tried adding quotation marks (though I end up going down a rabbit hole when I do this) and pasting the formula in line by line and using the appropriate separators.
Thank you all!
I'm attempting to get two separate concatenation formulas into a somewhat complex macro. I ended up using the record macro function, but there is a constant error when it gets to pasting the concatenation formula.
The relevant formulas are as follows:
=CONCATENATE("BETWEEN ",TEXT(IF(MIN(E:E) > 0, MIN(E:E), ""),"MM/DD/YYYY")," AND ",TEXT(IF(MAX(E:E) > 0, MAX(E:E), ""),"MM/DD/YYYY"),","," ",K2," ",L2," RECEIVED ",COUNTIFS(I:I,"MONEY TRANSFER RECV",Y:Y,"<>AUTOMATED",Y:Y,"<>MONEYGRAM")," TRANSACTIONS FROM X SENDERS IN X, TOTALING ","$",SUMIFS(J:J,I:I,"MONEY TRANSFER RECV",Y:Y,"<>AUTOMATED"),", AND SENT"," ",COUNTIF(I:I,"MONEY TRANSFER SEND")," TRANSACTIONS TO X RECIPIENTS IN X TOTALING ","$",SUMIFS(J:J,I:I,"MONEY TRANSFER SEND",Y:Y,"<>AUTOMATED"),".")
=CONCATENATE("BETWEEN ",TEXT(IF(MIN(E:E) > 0, MIN(E:E), ""),"MM/DD/YYYY")," AND ",TEXT(IF(MAX(E:E) > 0, MAX(E:E), ""),"MM/DD/YYYY"),", ",K2," ",L2," CONDUCTED"," ",COUNTIFS(I:I,"*",I:I,"<>Product Type",Y:Y,"<>AUTOMATED")," TRANSACTIONS TOTALING ","$",SUMIFS(J:J,Y:Y,"<>AUTOMATED",Y:Y,"<>MONEYGRAM>")," WITH X COUNTERPARTIES IN ",Stringconcat(", ",Ao2:Ao1000), ".")
Even after the VBA auto-formatting. I've tried adding quotation marks (though I end up going down a rabbit hole when I do this) and pasting the formula in line by line and using the appropriate separators.
Thank you all!