Logical operators "<=" inside SUMIFS function - excel-formula

I have this equation that I am trying to replace the 4/30/2018 with EOMONTH function
=SUMIFS('RawDataAdwords - Daily'!$N$2:$N$1000,'RawDataAdwords - Daily'!$A$2:$A$1000,">="&$A2,'RawDataAdwords - Daily'!$A$2:$A$1000,"<=4/30/2018",'RawDataAdwords - Daily'!$C$2:$C$1000,"*Display")
Here is my attempt and I don't know how to actually get the new nested function to work
=SUMIFS('RawDataAdwords - Daily'!$N$2:$N$1000,'RawDataAdwords - Daily'!$A$2:$A$1000,">="&$A2,'RawDataAdwords - Daily'!$A$2:$A$1000,"<=EOMONTH(I24,)",'RawDataAdwords - Daily'!$C$2:$C$1000,"*Display")
I know the problem is how I am combining the logical operators and the EOMONTH function so I could use some input on what to do. Thank You

Try with: "<="&EOMONTH(I24,0)

Related

Excel Nested IF statements with ISBLANK, AND, and NOT ISBLANK

Here's the formula I've entered:
=IF(AND(ISBLANK(F2),(NOT(ISBLANK(G2)))),CONCATENATE(B2," - ",G2," pcs/box")),
IF(AND(ISBLANK(G2),(NOT(ISBLANK(F2)))),CONCATENATE(B2," - ",F2," sf/box")),
IF(AND(NOT(ISBLANK(F2), (NOT(ISBLANK(G2)))),CONCATENATE(B2," - ",F2," sf/box - ",G2," pcs/box")),"")
This is to format a spreadsheet to concatenate fields and text depending on whether fields do or do not have data. I've included "" at the end for the final else. Excel is telling me that I've entered too many arguments for this function. One that is simpler (where I only have one if, then an else) is working. But there are times when I need to check for additional empty fields. (Or cells) So, the first IF would give the tile name(B2) - #(G2) pcs/box. The second IF would give the tile name(B2) - #(F2) sf/box. The third IF would give the tile name(B2) - #(F#) sf/box - #G2) pcs/box. The final "" would give a blank. I hope you can help. I've looked everywhere. I'm stumped. I've looked at the () to make sure they're matched.
Your brackets are a little off. Try this one.
=IF(AND(ISBLANK(F2),(NOT(ISBLANK(G2)))),CONCATENATE(B2," - ",G2," pcs/box"),IF(AND(ISBLANK(G2),(NOT(ISBLANK(F2)))),CONCATENATE(B2," - ",F2," sf/box"),IF(AND(NOT(ISBLANK(F2)),(NOT(ISBLANK(G2)))),CONCATENATE(B2," - ",F2," sf/box - ",G2," pcs/box"),"")))
A little simpler:
=IF(OR(F2<>"",G2<>""),B2&IF(F2<>""," - "&F2&" sf/box","")&IF(G2<>""," - "&G2&" pcs/box",""),"")

nested ifs with multiple sumifs based on changing criteria

I am having trouble with this formula and would like to know if I am even building it in the correct order or how i can change it to get the desired result. Getting formula missing an opening or closing parenthesis error:
=IF(BH2="PPD TO FSC",SUMIFS('ALL BIDS'!R:R,'ALL BIDS'!D:D,BV2,'ALL BIDS'!E:E,I2,'ALL BIDS'!W:W,'DC TOOL'!U2,'ALL BIDS'!G:G,'DC TOOL'!V2,'ALL BIDS'!H:H,'DC TOOL'!M2),SUMIFS(FREIGHT!Z:Z,FREIGHT!Q:Q,'DC TOOL'!F2,FREIGHT!M:M,H2,FREIGHT!O:O,"PPD",FREIGHT!AA:AA,GRIDS!$U$3),IF(BH2="PPD TO GDC",SUMIFS('ALL BIDS'!R:R,'ALL BIDS'!D:D,F2,'ALL BIDS'!E:E,I2,'ALL BIDS'!W:W,'DC TOOL'!U2,'ALL BIDS'!G:G,'DC TOOL'!V2,'ALL BIDS'!H:H,'DC TOOL'!M2),SUMIFS(FREIGHT!Z:Z,FREIGHT!Q:Q,'DC TOOL'!F2,FREIGHT!M:M,H2,FREIGHT!O:O,"PPD",FREIGHT!AA:AA,GRIDS!$U$3))
Looks like you want 3 different possible SUMIFS, with the logic being as follows:
IF BH2 = "x" SUMIFS1, IF BH2 = "y" SUMIFS2 else SUMIFS3 so you need to write that like this:
=IF(BH2="PPD TO FSC",SUMIFS('ALL BIDS'!R:R,'ALL BIDS'!D:D,BV2,'ALL BIDS'!E:E,I2,'ALL BIDS'!W:W,'DC TOOL'!U2,'ALL BIDS'!G:G,'DC TOOL'!V2,'ALL BIDS'!H:H,'DC TOOL'!M2),IF(BH2="PPD TO GDC",SUMIFS('ALL BIDS'!R:R,'ALL BIDS'!D:D,F2,'ALL BIDS'!E:E,I2,'ALL BIDS'!W:W,'DC TOOL'!U2,'ALL BIDS'!G:G,'DC TOOL'!V2,'ALL BIDS'!H:H,'DC TOOL'!M2),SUMIFS(FREIGHT!Z:Z,FREIGHT!Q:Q,'DC TOOL'!F2,FREIGHT!M:M,H2,FREIGHT!O:O,"PPD",FREIGHT!AA:AA,GRIDS!$U$3)))

Insert bracket before a =TEXT()

I have a function that shows a begin- and end date. I wanted to have it between brackets in a cell:
=TEXT(A1;"dd/mm/jjjj")&" - "&TEXT(B1;"dd/mm/jjjj")&")
I have the outher bracket already:
Example ->01/01/2017 - 02/03/2017)
But can't seem to try around and insert a bracket in the beginning.
I have tried:
=TEXT((A1;"dd/mm/jjjj")&" - "&TEXT(B1;"dd/mm/jjjj")&")
=TEXT("("A1;"dd/mm/jjjj")&" - "&TEXT(B1;"dd/mm/jjjj")&")
=TEXT(&"("A1;"dd/mm/jjjj")&" - "&TEXT(B1;"dd/mm/jjjj")&")
"("=TEXT(A1;"dd/mm/jjjj")&" - "&TEXT(B1;"dd/mm/jjjj")&")
Why isn't this working?
Use the concatenate function.
Try this: (Convention Changed)
=concatenate("("; TEXT(A1;"dd/mm/jjjj")&" - "&TEXT(B1;"dd/mm/jjjj"); ")")
You can avoid string concatenation by making the extra characters part of the format mask used by the TEXT function. When using reserved characters or symbols that a format mask usually has another purpose for, precede them with a backslash to convert them to a 'string literal'.
=TEXT(A1; "\(dd/mm/jjjj - ")&TEXT(B1; "dd/mm/jjjj\)")

How do I sum results of two if statements in the same cell?

I'm looking to have the results of two If statements calculated and added in the same cell. I'm getting #VALUE! error.
=IF(ISERROR(GETPIVOTDATA("Sum of CHARGES",'Ship City'!$A$3,"ship_city",$B$7,"carrier_type",$A$27,"INV_month_id",D$6,"INV_year_id",$D$5,"Company Name",$B29)),"",GETPIVOTDATA("Sum of CHARGES",'Ship City'!$A$3,"ship_city",$B$7,"carrier_type",$A$27,"INV_month_id",D$6,"INV_year_id",$D$5,"Company Name",$B29))+IF(ISERROR(GETPIVOTDATA("Sum of CHARGES",'Recipient City'!$A$4,"recipient_city",$B$7,"carrier_type",$A$27,"INV_month_id",D$6,"INV_year_id",$D$5,"Company Name",$B29)),"",GETPIVOTDATA("Sum of CHARGES",'Recipient City'!$A$4,"recipient_city",$B$7,"carrier_type",$A$27,"INV_month_id",D$6,"INV_year_id",$D$5,"Company Name",$B29))
=IF(ISERROR(GETPIVOTDATA("Sum of CHARGES",'Ship City'!$A$3,"ship_city",$B$7,"carrier_type",$A$27,"INV_month_id",D$6,"INV_year_id",$D$5,"Company Name",$B29)),"",GETPIVOTDATA("Sum of CHARGES",'Ship City'!$A$3,"ship_city",$B$7,"carrier_type",$A$27,"INV_month_id",D$6,"INV_year_id",$D$5,"Company Name",$B29))
+
IF(ISERROR(GETPIVOTDATA("Sum of CHARGES",'Recipient City'!$A$4,"recipient_city",$B$7,"carrier_type",$A$27,"INV_month_id",D$6,"INV_year_id",$D$5,"Company Name",$B29)),"",GETPIVOTDATA("Sum of CHARGES",'Recipient City'!$A$4,"recipient_city",$B$7,"carrier_type",$A$27,"INV_month_id",D$6,"INV_year_id",$D$5,"Company Name",$B29))
Your both IF functions return an empty string "". Using + operator with strings returns #VALUE!. There are different methods to fix it:
use 0 instead of ""
use SUM instead of + (it ignores strings).
And as #John Bustos mentioned in his comment, you can simplify your formula with
IFERROR(value,value_if_error)
IFERROR description

How to use AND/OR in excel for this?

I am curious as how I can solve this.
I have a column containing product name(columns AQ) and I have created a column to its right showing(column AR) 1 or 0 if it matches.
this is the code :=IF(RIGHT(AQ3;3)="MAX";1;0)
What I wanted to know is... how can I use the AND or OR function to add "BAS"( so it has both "MAX" and "BAS") in the above code?
I tried this but it returned #VALUE.
Failed attempt.IF(RIGHT(AQ3;3)="MAX";1;0);IF(RIGHT(AQ3;3)="BAS";1;0)
Thanks for the answers: How to I use "AND" in this?
You use it as follows:
=IF(OR(RIGHT(AQ3;3)="MAX";RIGHT(AQ3;3)="BAS");1;0)
OR works like that: OR( Expr1 ; Expr2 ; Expr3? ...)
If any of those expressions evaluate to TRUE, then OR returns true.
Your IF syntax will work like this:
=IF(RIGHT(AQ3;3)="MAX";1;IF(RIGHT(AQ3;3)="BAS";1;0))
or an alternative OR version:
=IF(OR(RIGHT(AQ3;3)={"MAX";"BAS"});1;0)

Resources