How can I share a cell value between two Excel documents? [closed] - excel

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have two documents that should share a numeric value that should also increase by one after each time one of the documents are used.
For example:
I open docA.xls and it should say 001.
I'd like to be able to change it to 002 and save.
When I open docB.xls, it should say 002, because docA's value is 002.
I'm pretty sure I can create a third spreadsheet that I could update to update the two cell values, but I'm wondering if there is a way to link cells other
than having a formula that reads =A1.
I realize I could have one workbook with three spreadsheets, as well.
But what is the best way to accomplish this?

Copy the first cell.
Paste on the another sheet as a Paste Special => Paste Link.

One workbook w/ 3 spreadsheets would be the most straight-forward; you can specify which spreadsheet in a cell reference, so both sheets could explicitly refer to the same cell. And if you don't like explicitly using the row/col reference, you could always assign it a name and use that.

Related

Excel without VBA: How to create a sequential number following pattern from a column [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have the following table:
I'd like to fill automatically the column with '001,002...' following the previous column. Please see the image to see the pattern (We'll have many in the future, it's crazy doing it manually)
I'm attching an example file: https://1drv.ms/x/s!Akmhm4db64ebrHQF9rlhwNUa7tdS?e=kUkFlV
Thank you!
Use TEXT and IF, like the following:
=TEXT(IF(A2<>A1,1,B1+1),"000")
Tested this formula in excel and it worked for me. Paste into cell B2 for your L4 code column and just copy down. As new items are added in column A, the pattern will repeat.
=IF(A2=A1,BASE(B1+1,10,3),BASE(1,10,3))
If you need to have it automatically populate to a predetermined row, drag the formula down (for example 1,000 rows) and use the following:
=IF(A2="","",IF(A2=A1,BASE(B1+1,10,3),BASE(1,10,3)))
Just for explanation purposes, what the formula is doing is looking at the previous item in column A and checking to see if it is the same as the current item, if yes, increment by 1, else start over at 1. The BASE function is adding the leading 0's.

How to extract specific ids [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
There is probably an easy way to do this. Just cant figure it out.
I have a huge dataset with multiple id:s that can have different code (column 2). How do I go about to extract by specific code "x" in this case and also extract all the ids that contains even one x. See image
From your screenshot it seems you are trying to filter IDs excluding code c. If I am correct then use below formula to E2 cell. If my assumption if wrong then please explain how your output is coming.
=IFERROR(INDEX($A$2:$B$12,AGGREGATE(15,6,(ROW($A$2:$A$12)-ROW($A$1))/($B$2:$B$12<>"c"),ROW(1:1)),COLUMN(A$1)),"")
Edit after clarification: Only for Office365 excel.
So, if you have Office365 excel then use below formula as per screenshot
E2=FILTER(A2:A12,ISNUMBER(MATCH(A2:A12,UNIQUE(FILTER(A2:A12,B2:B12="x")),0)))
F2=FILTER(B2:B12,ISNUMBER(MATCH(A2:A12,UNIQUE(FILTER(A2:A12,B2:B12="x")),0)))
If you do not have Office365 then you need to use combinations of few formulas by array entry which will slow your excel performance. Here is array formulas.
E2=IFERROR(INDEX($A$2:$A$12,AGGREGATE(15,6,(ROW($A$2:$A$12)-ROW($A$1))/(ISNUMBER(MATCH($A$2:$A$12,IF($B$2:$B$12="x",$A$2:$A$12,""),0))),ROW(1:1))),"")
F2=IFERROR(INDEX($B$2:$B$12,AGGREGATE(15,6,(ROW($A$2:$A$12)-ROW($A$1))/(ISNUMBER(MATCH($A$2:$A$12,IF($B$2:$B$12="x",$A$2:$A$12,""),0))),ROW(1:1))),"")
Press CTRL+SHIFT+ENTER to evaluate the formula as it is an array formula.

Excel Cell format wont save [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have a data sheet of an imported IP address table. Sometimes in de IP column he shows
192.168.18.31 but when you open the cell it actually is 1921681831. When i try to change it, by typing '.' between it, it still stays 1921681831. I've tried to check the cell format but everything seems normal.
Anyone an idea how to overcome it, and how to change it? is there a way some automaticly change all the wrong cells. (because i have a data sheet of more than 600 rows)
Thanks in advance!
The problem you're facing is that Excel treats the value you entered as a normal number, i.e. 1921681831 to which it applies default formatting - which is to add a thousands separator after every 3 digits.
What you need to do instead is to tell Excel to treat the cell as text! To so, either start the cell with ', i.e. '192.168.18.31, or format the cell as Text (in the Format Cell dialog in the Number tab).

Excel formula - Compare two tables for values [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I need help setting up an Excel-Formula.
I have two tables that I need to compare in order to multiply the currency rate of table2 with the amount of table1 depending on the date of table1 matching the date field of table2.
If you have a look at the screenshot I made I think you will understand what I want to do: Image
Hope you can help me set up a formula for this. If you need the excel-file for testing I uploaded it to zoho. Link
This should do it:
=IF(ISNA(A3*INDEX($F$2:$H$13,MATCH(1,(B3=$G$2:$G$13)*(C3=$F$2:$F$13),0),3)),A3,A3*INDEX($F$2:$H$13,MATCH(1,(B3=$G$2:$G$13)*(C3=$F$2:$F$13),0),3))
Select your cell and put your cursor in the formula bar and press Ctrl+Shift+Enter
PS: thanks to RocketDonkey ;)
In the interest of showing various ways, here is alternative using SUMPRODUCT:
=A2*SUMPRODUCT(--($F$2:$F$13=C2),--($G$2:$G$13=B2),$H$2:$H$13)
If you wanted to handle 0 values differently, you could wrap everything in an IF statement.
=IF(A2*SUMPRODUCT(--($F$2:$F$13=C2),--($G$2:$G$13=B2),$H$2:$H$13)=0,
"Special stuff",
A2*SUMPRODUCT(--($F$2:$F$13=C2),--($G$2:$G$13=B2),$H$2:$H$13))

Excel vlookup() the right function to use? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm not sure if VLOOKUP() is the function I am looking for, but here is the spreadsheet that I am working on: https://docs.google.com/spreadsheet/ccc?key=0Ap96QeCBYRNtdDlpX0lONDg1YThLN1M5YkNlT1FBeFE
What I am basically trying to do is use the values in cells E18:P18 to determine whether or not my values in cells E4:P7 should be replaced or not. If there is a value other than 0 in that range, then it should take the values from the appropriate column in the range of E13:P16 and replace them into the appropriate item.
So, for this example, we are replacing item values 1 (weapon #1), 3 (off-hand), 4 (helm), and 5 (shoulders). The expected results can be seen on the spreadsheet and these are the values that I would like to show up in the Equipped Item. Is there a way to easily achieve this through an excel formula? If so, what is the best way to use it?
After our discussion, here's what I think you should do.
In the Expected Results table, try this formula out in cell E31:
=IFERROR(INDEX($E$17:$P$20,ROWS($1:1),MATCH(VLOOKUP(E$30,$A$4:$B$17,2,FALSE),$E$22:$P$22,0)),E4)
Once you paste it in, you can copy down and the formula will adjust accordingly.
Here is a picture of the expected results based on your info:
Please let me know if this is the desired result :)

Resources