Excel: In what order a word appear - excel

I have this case right here. The table below is what I expect, but it's originally without a formula.
Info for the pic:
On the green cell, i'd like to find two criteria from two different cells: "Car" & "Ford", in what line are they?
The blue cell is the second example. It is the same but different criteria. So I want to do this to build a product number with my own formula that I already built, except this last things.
My question is:
What formula that can do that. I did a full day research on the internet, google and youtube. But I don't get and answer. And I'm not an expert in a excel. I only did and googling all the things I did in excel. So please help me find out how.
Thank You

In this example the formula shown is entered in E2 and filled down.
Note this is an array formula, so use Ctrl+Shift+Enter to enter it.

I'd personally suggest you look into Pivot Tables. They do exactly what you want and probably more.
https://support.office.com/en-us/article/Create-a-PivotTable-to-analyze-worksheet-data-A9A84538-BFE9-40A9-A8E9-F99134456576

Related

How can I search the similarity between a cell and the cells of a column, and receive the most similar one? (excel)

I have a cell with a company name. In another column, I have cells with company names, and I am trying to find the most similar cell with the first one that I mentioned before. Also, I have to mention that there is not an exact match, in order to use the EXACT formula. So, I want to find a formula or a VBA way, in order to make a serach at the column, find the most similar cell and return that to me.
Thank you in advance.
Use Find with the xlPart to find the closest.

Excel: how to move “answers” rows into under column “questions”?

How do I move answers from other column to same question under another column, can any one guide the exact formula to achieve this? See example below what needs to be achieved as shown in picture.
With having the data as posted in your example, use the following formula in A10:
=IF(OR(OFFSET($A$1,ROUNDDOWN((ROW()-7)/3,0),,,)=A9,OFFSET($A$1,ROUNDDOWN((ROW()-7)/3,0),1,,)=A9), IF(OFFSET($A$1,ROUNDDOWN((ROW()-7)/3,0),1,,)=A9,"",OFFSET($A$1,ROUNDDOWN((ROW()-7)/3,0),1,,)),OFFSET($A$1,ROUNDDOWN((ROW()-7)/3,0),,,))
But there may be a simpler way..

N/A error while using the correct VLookup formula to get value from other sheet

In excel, I was trying to get fund value of a particular mutual fund by using VLookup to search another sheet. In the process, I am getting N/A error even if the VLookup formula seems correct.
The below screenshot is of the sheet with the VLookup excel formula:
Is there any issues with the vlookup formula that I am using here.
=VLOOKUP(D4,Sheet1!$A$5072:$E$5075,5,FALSE)
I have tried many version of the vlookup but to no avail. Could anyone please help? Thanks!
Cleaning the data is the best option, so that both values are either all text, or all numbers.
But a quick and dirty work aroubd would be to use to convert the text to numbers
=INDEX($E$5072:$E$5075,MATCH(D4,VALUE($A$5072:$A$5075),0))
or
=XLOOKUP(D4,VALUE($A$5072:$A$5075),$E$5072:$E$5075,,0,1)
Agree with Chris Neilsen that this is most likely a case of different formatting between the lookup item vs lookup array. The left alignment implies that both are formatted as text. Given this, just double check that both indeed are formatted as text vs. someone left-aligning a column of numbers.
Let us know if that doesn't solve the problem and we can walk you through replacing this formula with an Index+Match formula.

Excel: Return header for searched value (multiple instances)

Preferring not to use any macros...
I'm trying to build a formula to be able to search for a specific value within a number of different columns. See mock up.
Desired formula picture:
In the yellow boxes I'm searching for a specific number, and to the right I'm wanting to return the heading that value belongs under.
I've tried using a formula including index, small, search but my experience with arrays is not great.
Any thoughts?
Attaching a picture of the formula I'm using now (only including 3 months). I really don't the way this formula is set up because the data import is not easy to replace. I want the data to live in the columns.
Working, bad not desired picture:
Alternatively, if this formula cannot be done, is there any easy way to convert the data from the desired picture into the format of the not desired picture?
Try this Array Formula which requires confirmation with Ctrl+Shift+Enter instead of Enter alone.
In B14
=IFERROR(INDEX($B$1:$M$1,SMALL(IF($B$2:$M$11=$A14,COLUMN($B$1:$M$1)-COLUMN($B$1)+1),COLUMNS($B14:B14))),"")
and then copy it across and down.

IF statements combining multiple columns

I am using excel 2010 and looking to use IF statements to add multiple columns that have both letters and numbers. I have come as far as to get all the coding in so that when one of each condition is presented they total correctly.
The problem I am having is if there is more than one of the same condition.
For example the IF statement I am using is: =IF(ISNA(MATCH("1P",C7:CO7,0)),0,1)+IF(ISNA(MATCH("2P",C7:CO7,0)),0,2) and so on.
Obviously between cells C7 and CO7 there are many cells and if more than one cell has 1P or 2P in it the additional cells are not being added and only one. How can I get my formula to recognize the condition in more than one cell?
Thanks
=COUNTIF(C7:CO7,"1P")+2*COUNTIF(C7:CO7,"2P") should get you the answer you need
Edit: Fixed formula - thanks #Andy
If you are interested in a flexible approach that allows for an arbitrary number of match values and multipliers, you could try this.
Make a little table somewhere of Match Values and corresponding Multipliers and use this array formula:
=SUM(IF($C$7:$CO$7=$A$2:$A$5,$B$2:$B$5,0))
Commit the array formula by pressing Ctrl+Shift+Enter.
Note my screen shot truncates the data range. 14 is the correct answer for the data I entered.

Resources