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

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..

Related

Fill-down formula vs array formula vs table formula

Let's say I have the following Excel table:
To create a new column for Full Name, what is the suggested or more common way to do it:
Doing a scalar formula and then clicking to fill-down such as shown here; or
Doing an array formula such as shown here.
Or I suppose converting it into a table object and then applying a row formula such as shown here. Oddly though, it doesn't automatically fill down the column and you have to fill-down such as in step 1.
Are there any guides on what the suggested way to work with this stuff is? I can't find much on the official Excel site. What is the way this is usually done?
Use the Left, Right, and Mid functions that use Search. These are always dynamic.

How to drag down formula and change COLUMN references instead of ROWS to make a dynamic list?

I've searched around a good amount and I have not found a solid answer for this question, despite a few promising looking question titles.
This question here for example: Drag down formula and change COLUMN references instead of ROWS
Unfortunately only works for specifically referenced cells. I'm working with a data set that is likely to have columns added to it in the future, and I need to pull the first row of these columns dynamically into a vertical list. Because of this, the method accepted as an answer in that question is not a solution for my problem.
I have data coming in like this:
and I'm pulling the Course names into a vertical list like this:
The thing is, more courses are likely to be added in the future, and I'd like to be able to just drag down my formula to pull them.
Try this formula in cell A10 of the first sheet in your question ...
=INDEX($1:$1048576,1,1+ROW(10:10)-10)
... and then drag it down!
The formula works by using the current ROW() number to calculate the required column number, which is passed into the INDEX() function.

Transpose multiple rows into Single Column

I have a range B2:Y194 of which I need to transpose from a row into a single column in cell A196, How would I go about doing this please?
I have tried this formula from another site but not quite sure how to tailor it to work on my range
=OFFSET($B$2,ROUNDUP(ROWS($2:2)/3,0)-1,MOD(ROWS($2:2)-1,3))
Here is an example as like you asked, please change the references as per your data requirement.
Formula Used in A1: =INDEX($C$2:$AA$671,1+INT((ROWS($A$1:A1)-1)/COLUMNS($C$2:$AA$671)),1+MOD(ROWS($A$1:A1)-1,COLUMNS($C$2:$AA$671)))
If this one not suits for your requirement, please let me know along with screenshot of
your data by modifying your question again.

Excel: In what order a word appear

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

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