Tricky Excel Lookup - excel

I have a table in Excel that looks like this:
Column A Column B
Header
Desc 1 Value1
Desc 2 Value2
Total TotalValue
I only know the Header name to search for but I want it return the TotalValue from Column B.
Any ideas on how to do this? Thanks!

=OFFSET(A1;MATCH("Header";A1:A5;0)+2;1)

Related

how to arrange numbers in ascending order based on a column data

I have an excel file with 3 columns. 2 columns have data - msisdn and cardnumber, but one column is empty - accountnumber
MSISDN, CARDNUMBER AND ACCOUNTNUMBER
I am trying to add data in the accountnumber column. The value here is Min 1 and Max 4.
so if an msisdn has 2 cardnumbers registered, his accountnumbers will be 1,2 and the next msisdn in the next row will have 1 for his first cardnumber.
i have 10,000 rows and i cannot update all of them manually. please if someone can help me with a formula i would really appreciate.
You can use the below formula in B2 and copy that cell and paste in all other rows in B
=SUMPRODUCT((A$2:A2=A2)*1)
You can use this formula on column B
=COUNTIF($A$2:A2,A2)

Copy/Move cells by id

How can I move values from Worksheet 1 column B to Worksheet 2 column B, based on a unique ID in column A? Some IDs are duplicates and some values are empty, I would like to ignore empty values.
Worksheet 1:
A B
23452 value1
23452
53252 value2
67452 value3
Worksheet 2:
A B
53252
23452
67452
Wanted Result (Worksheet 2):
A B
53252 value2
23452 value1
67452 value3
What I have tried
Merging data in Open/Libreoffice calc - could not figure this out for my specific requirements.
You can try this simple INDEX-MATCH formula,
In column B of sheet2,
=INDEX('Sheet1'.A:B;MATCH(A1;'Sheet1'.A:A;0);2)

Excel 2010: Vlookup Name from one column & Count and return data from another column

Hoping someone can help me here. :)
I have two columns of data in Worksheet 1:
COLUMN A = NAME (EG. TOM)
COLUMN C = TYPE OF QUERY (FAX, TEL, EMAIL, MAIL)
I would like to have in Worksheet 2:
COLUMN A = NAME (EG TOM)
COLUMN B = A COUNT OF HOW MANY FAXES TOM HAS
COLUNN C = A COUNT OF HOW MANY TELEPHONES TOM HAS
COLUMN D - A COUNT OF HOW MANY EMAILS TOM HAS
COLUMN E = A COUNT OF HOW MANY MAILS TOM HAS
If anyone can help me that would be great.
Thanks guys
You can use a pivot table. In sheet 1, click into the data table, then click Insert > Pivot table.
Drag the Name field to the rows. Drag the query type field to the columns.
Drag the Namie field again, this time to the Values area, where it will turn into a count.
Now you see a count of query types for each name in a matrix.
Use countifs instead if you really want to use formula. A pivot table would be the best way to go though.
eg for column B, row 1 on sheet 2:
=COUNTIFS(Sheet1!A:A, A1, Sheet1!C:C, "FAX")

Excel Pivot Table Count Unique Values

I have a pivot table like so
Field Count of Field
Value1 1
Value2 4
Value3 6
The field that shows the summation of the count shows 11 which is correct but how do I just show the unique values in Field (which is 3 in this case)
Count the values in the Excel column and subtract 1 for the Pivot header and 1 for the Grand Total (if showing).

Counting duplicate rows using Excel

I need to count the number of duplicate occurrences of values in a column using excel, ONLY for rows with a certain value in second column i present.
Column1 Column2
value1 x
value1 x
value1 x
value1
value2 x
value2
value3 x
---> should give
VALUE Occurencies
value1 3
value2 1
valu3 1
How to do this?
Thanks!
You can use a pivot table, which does not require any typing of values or any formulas.
Drag column1 into the row area and column2 into the values. If it is text, it will be counted. If the other values in column 2 are blank you are done. If they contain values, you can drag column2 into the filters area and then use the filter dropdown above the pivot table to select what value in column2 to use.
After you add new data to columns A and B, select the pivot table and refresh it.
If Column1 is in A1, please try:
=COUNTIFS(A:A,D2,B:B,"<>")
copied down to suit where D2... contain Value1 etc

Resources