Mix value of a cell with each value of other cell [duplicate] - excel

This question already has answers here:
Generate All Permutations in Excel using LAMBDA
(4 answers)
Closed 12 months ago.
Please forgive me if this sounds stupid, I have 0 excel experience under my belt but I am trying to help a friend out with his file.
I am wondering if it is possible to mix(concatenate or other type) the value of A1 with all the values of B column and C column. Example:
A Apple, Pear, Grape
B Red, Yellow, Blue
C Large, Medium, Small
Desired output:
Column D output: Apple Red Large, Apple Red Medium, Apple Red Small, Apple Yellow Large, Apple Yellow Medium, Apple Yellow Small, Pear Red Large, Pear Red Medium Etc.
I am looking to combine the values from A column with each of the values from B and C column as shown above. Is it possible or am I just complicating things ?
Thank you in advance for your time,
Dan

=CONCAT(B6," ",C6," ",D6)

Related

Subtract two range values for matching ones excel

I have come across of the problem that, I don't know how to solve in efficient way. So I have two tables like these:
Table 1
Company Score
Apple 10
Banana 5
Kiwi 4
Pineapple 2
Table 2
Company Score
Apple 4
Pineapple 3
Kiwi 2
Strawberry 1
Then in my result table in which I have company names listed in one column, like below. Right next to this I would like to show the differences which should be the first table values - the second table values where company names match(the list can be in different order that is why, I need to check it before subtracting).
Table 3
Company Result
Kiwi 2
Apple 6
Banana -5
Pineapple -1
I can do this with nested IF function to check every cell one by one, but I assume there might be more efficient way. I wonder if you have one.
Thanks to #ScottCraner's comment, I solved it with two sumifs subtracted from one another with this formula. I entered this in Column D66 and dragged down
=SUMIF($C$36:$C$45;$C$66:$C$75;D$36:D$45)-SUMIF($C$51:$C$60;$C$66:$C$75;D$51:D$60)
1st Sum if: Where C36-C45 is my first list of companies, C66-C75 is the list of companies that I have in the results table, D36 -D45 is the score list from the first table.
2nd Sum if: Where C51-C60 is my second list of companies, C66-C75 is the list of companies that I have in the results table, D51 -D60 is the score list from the second table.

Total sum using specific text and date

I was wondering if anyone can help me with this as I have had a look everywhere online and can’t seem to get the correct answer.
I have a very large complicated excel sheet that contains products I have bought over several months.
What I am trying to achieve is to do a total sum using specific text within a time frame. I have managed to achieve the total sum using specific
Text by using this formula
=SUMIF(A2:A8,"apple",B2:B8)
But now what I want to do is add an extra string if possible to look between dates so that it looks for the sum apple of ‘apple’ within January.
Example of sheet
A B C
product price date
apple £150.00 Jan-16
apple £150.00 Feb-16
pear £100.00 Jan-16
pear £100.00 Feb-16
apple £150.00 Jan-16
banana £200.00 Feb-16
banana £200.00 Feb-16
Apple Total
Jan Feb March
**£450.00**
Pear Total
Jan Feb March
Your dates look as if they are dates showing just month and day, so Jan-16 would be stored as 1-Jan-16. In this case you could use a SUMIFS like this
=SUMIFS($B$2:$B$8,$A$2:$A$8,$E1,$C$2:$C$8,DATEVALUE(E2&"-16"))
where the fruit to be matched is in E1 and the month in E2.
To match dates anywhere in the month, you could use EOMONTH
=SUMIFS($B$2:$B$8,$A$2:$A$8,$E1,$C$2:$C$8,">="&DATEVALUE(E2&"-16"),$C$2:$C$8,"<="&EOMONTH(DATEVALUE(E2&"-16"),0))
Have changed first date in the screen shot below to illustrate the two formulae

Equal distribution formula based on preset values. Excel

e.g. There are 300 apples. There are 100 people. Each person has a preset value (represented as a number 1 to 5). 1=1 apple, if their value is 5 they get 5 apples etc. But there are 300 apples available so each person is going to get more then the value says they "deserve". Or one day there are only 200 apples and every one gets less then what the value states says they "deserve". Is this possible in excel?
NAME VALUE
john 5
james 5
sam 4
matt 5
mike 3
steve 2
etc...
This absolutely sounds like a perfect problem for Solver to handle. As you know, this in included within Excel's addins. It can deal with all the variables you mentioned.

OR criteria with DAVERAGE

Given a large number of entries like the following:
type quantity
apple 3
orange 6
pear 2
pear 2
orange 1
...
I know I can create a pull down menu where I can select any type, say 'apple' or 'orange' and get the average quantity for that specific type: to do so, I use daverage where the criteria is a cell with data validation (i.e. whose content is controlled by a pull down menu).
But what I would also like to have in my pull down menu is an entry 'apple or orange' which when selected gives me the average quantity for apple and orange combined.
I know I can use daverage to compute that number but I don't know how to use that in combination with a pull down menu to achieve my final goal so that by simply modifying the content of cell controlled by a pull down menu, I can obtain the average for either orange, or apple, or orange and apple combined. Is there a way?
I'm posting an answer regardless because though not suitable for you it may be suitable for others in a similar (but not identical!) situation:
Including blanks in data validation can have drawbacks but if applied only to the selection criteria (highlighted yellow) this can be advantageous (two blanks in A2:A3 and the overall average is shown). Treating apple and orange separately rather than as orange-apple is simpler (does not require your workaround) and flexible – any pair (rather than pear!) could be chosen without extending the validation list.
Following pnuts' suggestion and the very same example data: I added a column isAppleOrOrange, computing yes or no using a following formula like this:
=IF(OR(A6="apple",A6="orange"),"yes","no")
This way, if you specify 'yes' in B2, you get the average for apple + orange combined. You can still specify any fruit you want in B1 to get the average for a specific fruit alone but need to make sure isAppleOrOrange is left blank in that case:

extracting multiple text in different cells into one cell

I need assistance in seeing if there’s a formula to the below excel dilemma:
(Note - dash lines are used as separators indicating different column)
Currently I have a spread sheet with the below data: 2 columns (A--B)
Abby -- apple
Abby -- orange
Abby -- lime
Bob -- orange
Bob -- apple
Carol-- lime
Carol-- orange
David-- apple
Is there a formula that tells Excel to pick up identical text in Column A and consolidate the respective Column B items into one Cell in Column C? : please find below the end result that I’m after:
Abby -- apple ---- apple orange lime
Abby -- orange
Abby -- lime
Bob -- orange ---- orange apple
Bob -- apple
Carol-- lime ---- lime orange
Carol-- orange
David-- apple ---- apple
Thank you in advance.
Regards,
Kit
You may be able to modify the answer to this question to fit your needs. It's more complex than what you need since you are only matching on a single column instead of two or more, but the underlying concept is actually the same.

Resources