The scenario is I have "B" and "W" generated randomly in column B and column C. I used "=countif(B2:B286, "W") to count how many "W"'s there are in Column B. I need to do the same in column C, but I need to make sure that I do NOT count the "W"'s in column C that have B's next to them in column "B". Any help is much appreciated.
Use this:
=COUNTIF(C:C,"W") - COUNTIFS(B:B,"W",C:C,"W")
Related
Can someone help on this? I have column A with telephone number and Column B with country code. I want to remove the country code in column A if it is there to avoid duplication. Can someone help me?
Column A 1234567
Column B 1
Column C 1234567
Column C should have the formula to check if 1 is already in the beginning of the cell value A, if yes, it'll remove it, but if not, column B value will be added to it. Another scenario is below:
Column A 234567
Column B 1
Column C 1234567
Appreciate your answer!
Something like this should do it:
=IF(TEXT(B1,"0") = LEFT(TEXT(A1,"0"), LEN(B1)),A1,CONCATENATE(B1,A1))
The logic is fairly straight-forward - take as many characters as the length of your country-code from the full number, and see if they equal the country code. If they do, ignore the country code, and just display the number; otherwise concatenate the two values.
Not sure why 'text' is needed, but fair enough I guess.
So I am trying to understand how to use excel to complete this exercise.
Basically, I have 4 columns (A, B, C, D). Looks like this:
A B C D E
CRT Carrot CRT CR
Apple Apple APL AP
Basically, I need to scan down column A and compare it to columns B & C. If the word in A matched either the full word in B or the three letter word in C, then I need to take the two-letter word in D and write it in column E.
I've managed to Use VLOOKUP to scan column A and column C and then append to E, however, I can't figure out how to have excel scan both B & C and then append D to E. (main issue here is that the input in A sometimes matches B and sometimes matched C).
Thanks!
I don't have a full grasp of your issue but have you tried aggregating the conditions in other columns like
Have column G Boolean check if A matches a word in B
Have column H Boolean check if A matches a three letter word in C
Have column I = G OR H
then have your result column based on I?
For what you are trying to achieve you can do with a nested if statement:
In Cell E1, use this fromula:
=IF(A1=B1,D1,IF(A1=C1,D1,""))
With the cell still selected, on the bottom right of the cell you will see a small square, click on this small square and drag down to auto-fill all the cells as required.
Formula: =IF(IFERROR(MATCH(A1,B1:C1,0),0)>0,D1,"")
Results:
I am trying to figure out the following:
I have two columns ranging from A2:A316 and B2:316.
In column A I have the values A/A, A/T, or T/T. In column B
I have the values G/G, C/G, or C/C.
Is there a formula that I can write in a new column, that can find combinations
such as A/A in one column and C/C in another (in the same row). So that excel returns some value (e.g. 1) when it finds A/A in A and C/C in column B.
and 0 if its A/A or T/T in column A and A/T in column B. I want to find how many rows are A/A and T/T respectively (in column A) and G/G and C/C in col B.
Best regards,
Granit
It should be fairly easy to do this.
In Column C put something like...
In C1...
=IF(OR(AND(A1="A/A",B1="C/C"), AND(A1="A/A",B1="T/T"), AND(A1="A/A",B1="A/T")), 1, 0)
Just add more to the OR statement for the extra pairs.
=COUNTIFS(A1:A75,"A/A",B1:B75,"C/C")
this should do the trick for you it will count you all A/A C/C combinations in given range
In Excel 2010: I would like to create a formula which would count values from COLUMN E depending on information in columns B and G of the same row. If, in column B, value is M (male) and in column E is YES, than it would count. I got this far and it works:
=COUNTIFS('2013 Details'!B:B,"Male",'2013 Details'!E:E,"Yes")
BUT, I need it to NOT count it if a third column (G) has "No". So, if column B contains "Male" AND column E has "Yes", count it, UNLESS column G has a "No" then don't count.
Thank you, in advance!
Try this version
=COUNTIFS('2013 Details'!B:B,"Male",'2013 Details'!E:E,"Yes",'2013 Details'!G:G,"<>No")
<> is "not equals to"
This is my example
Column A are numbers
Column B are numbers
Column C are Names
The A column are numbers associated with a item sold to one place. Column B is the items sold and C is the person who sold them. I would like column D to show the item sold to this one place and who sold it. Let me know if that makes sense.
PS: Column A has 1304 rows. Column B and C have 6154 rows
It is hard to guess what your data looks like, so assuming your data looks as below:
Here is my solution, I think it is a simple VLOOKUP problem:
Paste this =IF(ISERROR(VLOOKUP(C2,$A$2:$A$4,1,FALSE)),"","SoldToPlaceA") to E2 and drag it down to copy.