i wonder if you can help i am trying to highlight the row if the data in cell A1 and B1 match the data in A3 and B3,
For Example
A B
1 - ONE TWO
2 - THREE FOUR
3 - ONE TWO
So A1 & B1 = A3 & B3 could both rows be highlighted to show they match, any help would be much appreciated.
Kind Regards,
Andy
Have you tried =AND(OR(A1048575=A1,A1=A3),A1<>0) applied to =$A:$B?
Edit
Related
I want to compare 2 ranges of values to a single cell. I want to compare each row of both columns combined. Not just any value in column A and any in column B. It must be A1 & B1, A2 & B2, etc.
Example:
A1 : 1
A2 : 5
A3 : 7
B1 : 2
B2 : 3
B3 : 6
C1 : 11
I could use this formula:
=IF(OR(AND(A1<C1,B1>C1),AND(A2<C1,B2>C1),AND(A3<C1,B3>C1)),0,C1)
But I need to check a range of more than 100 cells so using AND would bloat the formula.
Which formula do I use?
Thanks in advance.
use COUNTIF():
=IF(COUNTIFS(A:A,"<"& C1,B:B,">" & C1),0,C1)
If any fit then it returns 0 other wise C1
I have number from 1 to 100 in column A1 to A100.
I am trying to achieve two results from data.
I want separately 1,2,3,4,5,6,7,8,9 and another one 10,20,30,40,50,60,70,80,90,100
Please help me
Maybe, in B1:
=1*(LEN(A1)=1)+2*(RIGHT(A1)="0")
double-click the fill handle and sort A:B on ColumnB.
This question is a bit vague. If you are looking to count by 10s, try adding a 10 in cell B1 and then adding the formula =B1+10 in cell B2. You can drag that formula down to count by 10s.
Let's say we want in column B "0, 1,2,3,4,5,6,7,8,9" and in column C "0, 10,20,30,40,50,60,70,80,90,100", put:
- =MOD(A1,10) as formula for the cell B1
- =INT(A1/10)*10 as formula for the cell C1
and then copy them to rest of the rows.
Essentially, I'm trying to come up with a formula that only extracts data from rows where a condition in a separate column of the same row is met, the condition is a constant and I know the answer must be stupidly easy, but I can't figure it out.
Example, say you have array like so:
Name Surname Status
------ ------- ------
John Bon Green
Jane Dane Red
Alex Flex Yellow
Romeo Cameo Green
Boris Horis Green
Julius Dubious Yellow
Holy Macaroni Green
And you wanted to have a list of people on a separate worksheet only with people with green status, without any blank rows in between when you drag it.
If our data is in Sheet1, columns A through C, then in Sheet2 cell A1 we enter the criteria:
Green
Then in Sheet1 cell D2 we enter:
=IF(C2=Sheet2!$A$1,1+MAX($D$1:D1),"")
and copy down:
This "Helper" column "marks" the rows of interest.
Then back on Sheet2, in A2 enter:
=IFERROR(INDEX(Sheet1!A:A,MATCH(ROWS($1:1),Sheet1!D:D,0)),"")
and in B2 enter:
=IFERROR(INDEX(Sheet1!B:B,MATCH(ROWS($1:1),Sheet1!D:D,0)),"")
Copy these cells downwards:
I've managed to figure it out, took forever.
=IFERROR(INDEX(INDIRECT("A" & SUM(MATCH(1,COUNTIF(A505, $A$1:$A$463),0),1)):$A$463,MATCH(1,COUNTIF($B$509,INDIRECT("K" & SUM(MATCH(1,COUNTIF(A505, $A$1:$A$463),0),1)):$K$463),0),),"")
LEGEND:
A505 = Previous result (Formula written in A506), Variable cell.
A1:A463 = Names
K1:K463 = Colours
The starting row of an Array will start 1 row below the previous result due to 'INDIRECT' formula.
From here it finds matching result to 'GREEN' in "K" Column represented by B509 and pulls how many rows below the starting row, then it uses row number in "A" Column to find the result that has "GREEN" as its colour.
If there's an error, it leaves the Cell Blank.
I have two columns A , B
A:have text
B:have values
I need to add the first value of B in first cell of Column C then, the next cell of column C have the first text of A and so on
EX:
C1:1234
C2:what is your name
OK... you aren't exactly clear on your question, since you can't have 2 cells in column C. But I think what you want to do is write this formula in cell C2:
=B2 & " " & A2
That will put values from both columns A and B in the same cell, separated by a space. But it's unclear what you want since "the first text of A and son on" could be interpreted many ways.
Please try the above formula and if it does not meet your demands then think of how you can rephrase your question.
----Edit----
In C1 enter the value:
=B1
In C2 enter the value:
=A1
Highlight both C1 and C2, then drag down with the fill handle. That should do it.
if a1 is bob, b1 is james, c1 is ricky, and d1 is a ssn#(123-45-6789), how do i combine the first charactersos a1, b1, and c1 and the last four of the ssn so that it says bjr6789?
=LEFT(A1,1)&LEFT(B1,1)&LEFT(C1,1)&RIGHT(D1,4)
Edit: Changed to use row1.