Cannot reference to another spreadsheet using SUMPRODUCT - excel

I am trying to get the last value of every S/N. Which means to say if I reference to '1a', I should get '23'.
I tried using =INDEX(B1:B9,SUMPRODUCT(MAX((A2:A9=E7)*ROW(A2:A9)))) for the following, which works for the same spreadsheet, however I cannot reference S/N and Value in other spreadsheets. I get a #REF!.
S/N Value
1a 41
2a 41
3a 23
4a 342
1a 31
1a 23
3a 43
2a 54
Is there another formula to reference to other spreadsheet?

You need to reference the other spreadsheet like:
EDIT: When other workbook is closed, this needs to be entered with the full path.
'C:\Property Audits\Western Region\Apartments\[Other Workbook.xlsx]Name of Sheet in Other Workbook'!B1:B9
Do this wherever there is a range of cells that you are referencing in the other workbook.

Related

I need get output using excel formulas

I want to get output on below table using Excel function.
I have tried Index match but it only helps to get output for first value, while I have duplicate values.
Database
Date Product Name
01-01-2016 60 A
01-01-2016 54 B
01-01-2016 40 C
01-01-2016 60 D
01-03-2016 47 A
01-03-2016 39 B
01-03-2016 46 C
01-03-2016 42 D
01-02-2016 37 A
01-02-2016 53 B
01-02-2016 25 C
01-02-2016 46 D
01-04-2016 49 A
01-04-2016 47 B
01-04-2016 46 C
01-04-2016 27 D
Need a help to fill the below table using Excel formula
Kindly find the below sample output
enter image description here
Using your posted "database" graph (the first one) as a reference and assuming that it starts in cell A1, I put your "required output" data in F1:J5. "A" starts in F2, F1 is blank and the dates are in cells G1:J1.
In G2 put this Array formula and then fill down to the last letter "D": = INDEX($B$1:$B$17,SMALL(IF($C$2:$C$17=$F2,ROW($C$2:$C$17),""),COLUMN()-6)). Then fill across. The "COLUMN()-6" in the Small function assumes that you put your "required out" data in the range F1:J5; otherwise, you will need to change it manually.

How to Drag a formula in Excel both across the columns and rows?

I have an Excel 2007 file with 2 sheets. The first sheet has 2 columns: one of dates, one of numbers like so:
1/1/2017 37
1/2/2017 82
1/3/2017 96
...
The second sheet has is to store the numbers in a "Calendar-like" fashion, like so:
SUN MON TUE WED THR FRI SAT
1/1/2017-1/7/2017 37 82 96 23 54 25 97
1/8/2017-1/14/2017 49 76 65 13 12 14 96
...
I am filling the "Calendar" style sheet from the much larger "List" style sheet. These go on for years, so I need a simple way to fill the "Calendar" style sheet from the plain list. I can use the simple formula of =sheet1!D7 to get from one sheet to the other, but I can only drag that formula in one direction... I can start it on Sunday, Jan 1 and drag it the whole way to Saturday, Jan 7, but if I try to drag the formula from that row to the next, it tries to insert starting with Jan 2 instead of Jan 8:
SUN MON TUE WED THR FRI SAT
1/1/2017-1/7/2017 37 82 96 23 54 25 97
1/8/2017-1/14/2017 82 96 23 54 25 97 61
...
Can I get these values from the list-type sheet to the calendar-type sheet without typing the formula in for each and every cell?
Not sure how your data is laid out, but if you adjust the range, this index/match should work:
=INDEX($B$1:$B$31,MATCH(DATEVALUE(LEFT($E3,SEARCH("-",$E3)-1))+COLUMN()-6,$A$1:$A$31,FALSE))
Note: I have one magic number in the formula, a 6. This is because this is where your "Sun" column starts. If you put your formula in any other column, adjust that number. Alternatively, you could get fancy and add logic looking for "Sun" in some array, but thought that's a little overkill.
You can drag this formula over and down.

Reference a cell of other worksheet while incrementing the Row number by 15 every time

I am trying to get value of sheet 1 cell "A19" in cell "A1" of sheet 2 and sheet 1 cell "A36" (which is 19+15) in cell "A2" of sheet 2. Do not want to use VBA as the number of rows in the sheets is high. have tried indirect function but havent been able to figure out how to reference cell from other workbook. is there any way this could be done?
In Sheet2, cell A1 enter:
=INDEX(Sheet1!A:A,19+(ROWS($1:1)-1)*17)
and copy down.
This will retrieve the data from these rows:
19
36
53
70
87
104
121
138
155
172
189
206
That is because the increment between 19 and 36 is 17.If you really want the increment to be 15, then substitute 15 in the top equation before the copy-down.
As you have said, you can also use INDIRECT , but INDIRECT is volatile so INDEX is a better choice
=INDIRECT("Sheet1!A"&1+(ROW()-1)*2)

Excel remove more than 2 duplicate records from a column

Excel has function to remove duplicates but what if i want only first 2 records of each value in a column.
E.g. Sheet
Email Value
abc#gmail.com 23
xyz#yahoo.com 24
sns#abc.com 75
abc#gmail.com 51
lkj#asd.com 85
abc#gmail.com 95
xyz#yahoo.com 52
uhk#asj.com 95
uhk#asj.com 42
Expected Result Sheet
Email Value
abc#gmail.com 23
xyz#yahoo.com 24
sns#abc.com 75
abc#gmail.com 51
lkj#asd.com 85
xyz#yahoo.com 52
uhk#asj.com 95
uhk#asj.com 42
Note that "abc#gmail.com 95" record which was third entry for the email id was removed. All other records has either one or two entries. No record is allowed for more than two entries. I have thousands of these in a sheet and need to only have first two entries of each email. Can anyone tell me how i can i delete more than 2 records as in above example?
create a helper column with the following formula:
Assuming "abc#gmail.com" is in cell A2, enter this formula in cell C2
=Countif($A$2:A2,A2)>2
This will result in a TRUE/FALSE value. Copy/Fill down the formula to the bottom of your list.
Since this formula returns TRUE for the first two instances of the email address, all of your FALSE values can be deleted from your worksheet.

Add .html to each single field value and add new field with 'custom_permalink'

I have CSV file and I can view it in excel. Here is example data:
ID Product Name
75 dale-earnhardt-jr-adult-costume
77 dale-earnhardt-jr-adult-costume-2
79 plastic-jeweled-crown
81 dollar-ring
83 the-wizard-of-oz-shoe-covers-child
1) I need to add '.html' at the end of product name like dollar-ring.html
2) I want add new column with value 'custom_permalink'
Output should be like:
ID New Column Product Name
75 custom_permalink dale-earnhardt-jr-adult-costume.html
77 custom_permalink dale-earnhardt-jr-adult-costume-2.html
79 custom_permalink plastic-jeweled-crown.html
81 custom_permalink dollar-ring.html
83 custom_permalink the-wizard-of-oz-shoe-covers-child.html
I've 30K records and want to add this using some easy way of excel?
Open/import your CSV file in Excel. Say, it is now in columns A and B.
In cell C1 write =A1.
In cell D1 write custom_permalink.
In cell E1 write =B1&".html".
Select cells C1:E1 and fill the formula till the bottom of your data.
Copy and paste special columns C:E as values only.
Delete columns A:B.
In cell B2 of CSV file add the below formula.
=CONCATENATE(A1, ".html")
Select the range in column B and filldown formulas using shortcut key CTRL+D.

Resources