I have two columns of data in excel sheet- column A and column B. I want that the values which are in column a but not in column b, should appear column c. for example please look at this screen shoot-
http://imgur.com/a/qYmFF
THANK YOU VERY MUCH..
You can use this array formula in C2(it must be in C2 or the reference of $C$1:C1 must be changed to the cell directly above the first instance of this formula):
=IFERROR(INDEX($A$1:$A$10,MATCH(1,(COUNTIF($A$1:$A$10,$A$1:$A$10)<>COUNTIF($B$1:$B$6,$A$1:$A$10))*(COUNTIF($C$1:C1,$A$1:$A$9)<COUNTIF($A$1:$A$10,$A$1:$A$10)-COUNTIF($B$1:$B$6,$A$1:$A$10)),0)),"")
Being an array formula it must be confirmed with Ctrl-Shift-Enter instead of Enter when exiting edit mode. If done correctly then Excel will put {} around the formula.
Then copy/drag the formula down till you get blanks.
Related
I have an excel sheet with the given date in Column A and B. I want to convert the same as shown on right side of the picture
If you wish to use formula approach, then please add this formula =IFERROR(INDEX($B$2:$B$14,SMALL(IF($D2=$A$2:$A$14,ROW($A$2:$A$14)-ROW($A$2)+1),COLUMN(A2))),"") in cell E2. When entering formula please use CTRL+SHIFT+ENTER combination, since this is array formula. After you confirmed formula, drag it across your area E2:H5.
So my sheet looks like this:
I need to sum the values based on text in the products column.
Can someone explain to me how this is done without using VBA?
Enter the following formula in Cell B2
=SUM(IF(ISNUMBER(FIND(","& E$1:E$5&",",","&A2&",")),F$1:F$5))
This is an array formula so commit it by pressing Ctrl+Shift+Enter. Drag/Copy down as required. See image for reference.
Got this from here.
I need to fill in the column D using the information from column G (all in the first sheet) and the information from column A in the second sheet.
What needs to be returned to the column is the exact information found in the second sheet with the letter.
I have tried using vlookup with extract and other's but I always get N/A returned and im getting nervous.
Below are two screenshots of each sheet and at the bottom you will find an excel file uploaded with example data.
Excel file with example
You can do this with an array. Remember to enter the formula with Ctrl+shift+enter
=INDEX(ActiveCoupons!A2:A9,MATCH(G3,RIGHT(ActiveCoupons!A2:A9,LEN(ActiveCoupons!A2:A9)-1)*1,0))
In 'ActiveCoupons' put in G2 : =RIGHT(A2,LEN(A2)-1)*1
In 'ActiveCoupons' put in H2 : =A2
Expand the formulas to the rest of the columns G,H
In CouponRedemptionResults put in D2: =VLOOKUP(G2,ActiveCoupons!G:H,2,0)
Expand the formula to the rest of the columns D
I know how to copy one column, then the other, and paste them into a column then remove duplicates. But I want one formula that does this. Is it even possible?
Here is a typical 3 column formula that you can adapt to your needs:
With data in A1 through C10, in D1 enter:
=A1
In D2 enter the array formula:
=INDEX($A$1:$C$10,INT(SMALL(IF(COUNTIF(D$1:D1,$A$1:$C$10)=0,ROW($A$1:$C$10)+(COLUMN($A$1:$C$10)*0.01)),1)),100*MOD(SMALL(IF(COUNTIF(D$1:D1,$A$1:$C$10)=0,ROW($A$1:$C$10)+(COLUMN($A$1:$C$10)*0.01)),1),1))
and copy down:
Array formulas must be entered with Ctrl + Shift + Enter rather than just the Enter key.
From:
Coderre Formula
Here is another one that works on the two columns but sorts it in a different order.
=IFERROR(INDEX($A$1:INDEX(A:A,MATCH("ZZZ",A:A)),MATCH(0,COUNTIF($D$1:D1,$A$1:INDEX(A:A,MATCH("ZZZ",A:A))),0)),IFERROR(INDEX($B$1:INDEX(B:B,MATCH("ZZZ",B:B)),MATCH(0,COUNTIF($D$1:D1,$B$1:INDEX(B:B,MATCH("ZZZ",B:B))),0)),""))
Being an array formula it needs to be confirmed with Ctrl-Shift-Enter instead of Enter when exiting Edit mode. If done correctly then Excel will put {} around the formula.
This formula must be entered in the second row. If you want your list to start in the first row then in the first cell put: =A1 then put the above formula in the second row, hit Ctrl-Shift-Enter, then copy/drag down.
SUMIFS(C1:C5,A1:A5-B1:B5,">5")
Is the above formula workable in excel?
Column A and Column B contain dates
Column C contains quantity.
What I need is When Column A minus Column B greater than 5 then sum all the quantity.
I understand this is able to do with creating a new column to get the difference in date first then use the computed value inside SUMIFS formula.
However, I really try to avoid adding an extra column.
Thank you
You can use the following formula:
=SUMPRODUCT(IF((A1:A5-B1:B5)>5,C1:C5))
this is an array formula, so press ctrl+shift+enter to calculate the formula.
Hope this works for you.