I'm trying to make the following condition work:
=IF(sheetcar!D8="B 770 AUT" ; IF(sheetcar!E8="yes" ; "yes" ; "no"))
But I want to make it search the whole column, something like
=IF(sheetcar!D="B 770 AUT" ; IF(sheetcar!E="yes" ; "yes" ; "no"))
This formula does not work. Is it possible to something like this with another formula?
Or do I have to use an extension or another program to make it work?
You have to refer full column like sheetcar!D:D and use array formula to make it working. Try below formual.
=ArrayFormula(IF(sheetcar!D:D="B 770 AUT",IF(sheetcar!E:E="yes","yes","no"),""))
Related
I need to add a 0 before all cells in the A column on Google Sheets. Is there a code or formatting function I can add in? I need them to look like A2. A3 is what I have right now. There are a total of 783 that were extracted like this and I don't wanna do this manually
I tried formatting a few ways but I'm still a beginner in Sheets & Excel
You can try with ARRAYFORMULA in another column:
=ARRAYFORMULA(0&A1:A)
=INDEX(0&A1:A)
(PS: you may change A1:A with A1:A783)
If you want to just change the values in that column, you may use FIND AND REPLACE --> (Edit -> Find and Replace), be sure you tick "Search using regular expressions". Put to find ^ and to replace 0
NOTE: thanks to #rockinfreakshow, prior this second option, first format to plain text:
And then do the replacement:
You can use this formula in the adjacent cell:
Then you apply it across all your rows.
Do not forget to copy and paste as values.
I am wondering what is wrong with my formula
=IF(OR(AND(D2:D="New booking";R2:R != "Partner")AND(D2:D="Google Ad";AA2:AA="Yes"; R2:R != "Partner"))"Default"; S2:S)
I want it like this
IF D = New booking & R != Partner then put Default
OR
IF D = Google Ad & Conversion = Yes & R != Partner then put Default
ELSE
Put S2:S (This is all other partners)
First - you should use arrayformula if you want this formula to work on whole columns. Second - if your goal is to use single formula for whole coulmn you should be aware that AND, OR formulas don't cooperate well with arrayformula.
!= does not work in Google Sheets. Use <>
; as a separator in formulas works only in some countries. Most countries use ,
WORKING AROUND OR AND with arrayformula
You can use logical values instead. Like (D2:D="New booking")(R2:R <> "Partner") makes the same work as and(logical test1 ; logical test2). You multiply conditions. When condition is true it gives 1. When condition is false it gives 0. 01 , 10, 00 gives zero.
You can work around or function using (logical test 1)+(logical test 2) and check value. If it is 1 or more you get the same results as using OR formula.
I've been working at this for a bit.
I have tried many times different formula combos, using VLOOKUP to using INDEX & MATCH, even with an ARRAYFORMULA.
What I'm attempting to do is match a territory to return a state. Then be able to copy the formula down.
As of now when I copy the formula downwards it can only return the first find in the column.
Where did I go wrong? I'm sure this far too simple and I'm overthinking the entire thing.
I was hoping for something like the following formula to work:
=ArrayFormula(index(States,Match(TER 1,Territory,0)))
=ArrayFormula(index($D$3:$D$53,MATCH($B$3,$C$3:$C$53,0)))
Try a query instead. In cell F4 try the following formula:
=IFERROR(QUERY($C$3:$D$52,"select D where C='"&G$3&"'"),"")
You can even drag the formula from F3 to the right and all of the rest will auto-fill.
Functions used:
QUERY
I have already asked a similar question in another thread which was wonderfully answered by someone. However, it seems like that even if it did help, it was not 100% ok for all my GSheets and different projects. So I have been able to get more useful data from my source and I think that I would be able to have a bulletproof solution if I am able to find the good formula...
So my data looks like that:
Column A has a list separated by semicolons. Copy paste looks like that "Potato ; Banana ; Apple".
Column B has a list of IDs, which are linked to the data in column A. So Potato is ID 1871, Banana is ID 1890 and Apple is ID 1840. Copy paste of date is: "1871 ; 1890 ; 1840"
Column C should output formula with the value "Banana", because his ID is the highest of all (1890 > 1871 > 1840).
I have tried a lot of different things. Overall I tried to SPLIT the values with " ; " and create one array where I would try to sort them from the column or row where the IDs would be. I wasn't sure how to merge both results...
I tried to study the ARRAYFORMULA() function to see if it would help. gSheets is very nice to work with, but I come from a world of PHP where I would write 7 lines of code to achieve my goals, where here I need to do only 1 line of code and it is a challenge for me.
Any help is appreciated to find the formula in cell C1 that would get the value from A1 that has the highest ID in B1.
=ARRAYFORMULA(HLOOKUP(MAX(TRIM(SPLIT(B1, ";"))*1),
{TRIM(SPLIT(B1, ";"))*1; TRIM(SPLIT(A1, ";"))}, 2, 0))
I have the following function
=IF(A2 <=10 , "YES","NO")
And if I want to apply for the entire column I have to drag this formula down. However, I wish to make it automated. The following formula doesn't work
={"New column";arrayformula(IF(A2 <=10 , "YES","NO"))}
Is there any way that I can make this formula automated for the entire column?
The argument of arrayformula should have an array somewhere. For example: A2:A instead of A2.
={"New column"; arrayformula(IF(A2:A <=10 , "YES", "NO"))}