Excel Formula - Making the concatenate cells showing a formula - excel

Is there a way to show my Concatenate(SumIf formula resulting into a text cell that shows the formula of two cells.
So for example, I have:
Row 1: List of Dates.
Column A: I have the dates of clients months.
Column B: I have names
Column C: I have the totals
What I'm trying to do is showing what adding what, so in April it shows Willy twice, and so I want it to show: =C3(5751)+C9(8852)
What I have: https://i.stack.imgur.com/LMTAR.png

You may try below formula.
="="&TEXTJOIN("+",TRUE,FILTER(ADDRESS(ROW(C3:C10),3,4)&"("&C3:C10&")",(A3:A10=D1)*(B3:B10=D2)))

This one should work if I understood your question correctly:
="="&TEXTJOIN("+",TRUE,IF(A3&B3=A3:A25&B3:B25,"C"&ROW(C3:C25)&"("&C3:C25&")",""))
There's no reason to use sumif; as the result you want doesn't have the actual sum there.

Related

Updating Price List in Excel with vlookup or Index/Match

I'm a book wholesaler and need to update my price and stock list constantly to share with some customers in excel format; also to use in importing to websites.
As in the image above, what I need is a formula for Column D to search for SKU in C2 in A-column for an exact match; return the value from B to the corresponding cell in D column.
I have searched countless topics, even found a solution in previous weeks but every time I use the same formula I get N/A or REF error.
TIA
Welcome to SO. Yor formula is good, but you are mixing numbers with text. In column A, the codes you are listing are stored as TEXT (note that they are left aligned inside cell), but the values you have in column C are stored as NUMBERS (note that they are right aligned insided cell). So Excel is looking for that NUMBER, but it finds no NUMBER in column A that matches, and returns N/A.
So before searching, let's convert the number in column C to a text, and let's see what happens. Try something like this:
=VLOOKUP(TEXT(C2;"#");$A$2:$B$2349;2;FALSE)
Hope you can adapt this to your needs.

Have A Dynamic Sum Function in Excel

So, I feel like I'm trying to do something fairly simple in Excel here. My company has a Spreadsheet with 2 columns and an indefinite number of rows. Column A is the Date, Column B is a production number for that date. At the bottom of Column B is the total production number. However, every time we update the spreadsheet we have to update the formula to include the newest data on every page. We insert columns for the new dates, so is it possible to have a function that changes based on it's current coordinate? For example something like =SUM(B3:B(CurrentRow-1)).
Use this:
=SUM($B$3:INDEX(B:B,ROW()-1))
It is non volatile and will sum everything from B3 to the row in Column B above where the formula is placed.
Hi You can use the below excel formula to achieve the result you are looking at.
If the values you want to sum up is in column B, then type the below formula and it will show the value dynamically when ever you have added a value to the column.
=SUM(INDIRECT("B2:B"&COUNTA(B:B)-1))

Excel: Return Multiple Items with One Lookup Value but on a different sheet

My formula works, but only if its in the same page, and along the same rows
Formula:
=(INDEX($C$1:$D$4,SMALL(IF($C$1:$C$4=$F$2,ROW($C$1:$C$4)),COLUMNS(D1:D4)),2))
Note: Column G has the formula, what it does it look for value in F2 (which is 1.2) within the columns of C & D, and extracts the respective data in column D. So in this case, it would extract the data in column G.
Question: Now what do I do if I want this to occur from different sheets, or even different workbooks? I need to do this exact same thing, extract the data that is in column c and d (which is on a different workbook) to my workbook.
Every time I try, I get a value error.
Bonus: I'm also trying to get the date that is closest to today's date, I have this formula here:
=IF(COUNT(G2:G5)>0,INDEX(G2:G5,MATCH(MIN(ABS(G2:G5-$D10)),ABS(G2:G5-$D10),0)),"")
Where D10 is just equal to =TODAY() and this entire formula works by pressing ctrl+shift+enter
If you can also include this into the formula so that it just spits out the closest date in G2 rather than spit out all the dates. But it is not necessary, just helps a lot.
For your "Closest to today problem", I was trying to spread the difference of the date or a comparison of the date just like in your example. This is just not working out. I solved the problem by adding another column. I do not know if this is a valid option for you or not, but here is what I have. Assuming H is available or you can insert a new column H. use this dragged down for each row - in your exampl 2 thorugh 5.
=ABS(D$10-G2)
Then add this in H10 or wherever you see fit
=D10-(MIN(H2:H5))
Here is an excel-ish example
5/12/2014 =ABS(D$10-G2)
5/13/2015 =ABS(D$10-G3)
5/14/2014 =ABS(D$10-G4)
5/15/2014 =ABS(D$10-G5)
6/6/2016 =D10-(MIN(H2:H5))

How do I nest the Cell "Address" Formula into a VLookup? in Excel

So here are the Columns:
Column A: Date
Column B: Prices of NASDAQ
Column C: Prices of ABC Stocks
I want to run a financial beta formula, (=COVAR(C1:C1000,B1:B1000)/VAR(B1:B1000).
But, I don't want the cells to always start from the first row... I want to be able to calculate this formula at different rows.
For example, if I have (=COVAR(C60:C1000,B60:B1000)/VAR(B60:B1000)
I want to be able to make that change by referring to a date in a new cell labeled "Start Date" without rewriting each formula.
I'm thinking of nesting a =Cell("address") formula within a vlookup, but I'm having trouble with this.
Could anyone please help me?
INDEX is usually preferable to INDIRECT for 2 reasons
1.) INDIRECT is a "volatile" function which means that it re-calculates every time the worksheet changes - potentially slowing everything down
2.) With INDEX you don't need to "hardcode" the column letters like "C" so the formula will still work if you add or delete columns.
It would look like this
=COVAR(INDEX(C:C,MATCH(Date,A:A,0)):C1000,INDEX(B:B,MATCH(Date,A:A,0)):B1000)/VAR(INDEX(B:B,MATCH(Date,A:A,0)):B1000)
...or rather than repeating the same MATCH function 3 times you could put the MATCH part alone in a separate cell or make it a named range - e.g. named start and formula becomes:
=COVAR(INDEX(C:C,start):C1000,INDEX(B:B,start):B1000)/VAR(INDEX(B:B,start):B1000)

Write the matching values in a cell

I have two excel sheets.
The first sheet matches the dates without price, and the second sheet matches the dates with price. I want to compare the two dates and if they are equal I want to put the right price into the B colume, so that it looks like that:
I want to implement this with a excel formula. However, I have no idea where to start.
I appreciate your answer!!!
PS.: My excel version is 2010
You need to use the vlookup() formula in the cells in column B:
=vlookup(A2,E1:F4,2;0)
Where the first value (A2) is the value you want to look up.
The second value (E1:F4) is the table where you want to look your value up.
The third value (2) is the column number of your table where you want to look the value up.
Remember, the fourth value is always 0 (or false).

Resources