Issue with a formula

richard1234567891011

Board Regular
Joined
Feb 21, 2018
Messages
91
Hi guys,

I have an Issue with a formula.

I have to put the data in order. The formula in cell F2 is LARGE(C2:C8;1), from cells F3 to F7 is the array in the picture. The array is ok, the issue is that is not working exactly as I want. The issue is underline in the picture, I want to repeat 200 because we are in another continent. Guys, Keep in mind that these are a very simplify data.
I need a general formula, not stuffs like if<>Europe or stuffs like that. I need and Array like this, that repeat data only based on the difference in value from the column on the right. I hope this is clear :)

Thank you very much guys.
11tvpmh.png
 
Last edited:

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi,

Maybe i'm over simplifying this but this looks like an ordinary rundown of values in column C to me.
If that's case why not use tyhe following: =LARGE($C$2:$C$9;ROW()-1)
 
Upvote 0
Hi,

Maybe i'm over simplifying this but this looks like an ordinary rundown of values in column C to me.
If that's case why not use tyhe following: =LARGE($C$2:$C$9;ROW()-1)


Dear jorismoerings,

Thank you for your answer. But no it is not the same. The issue with =LARGE($C$2:$C$9;ROW()-1) is that you will repeat ALL the value that are equal. I don't want to repeat all equal value, I want to repeat specific equal value, in this simplified example, the only values with the same continent.

Thank you very much.
 
Upvote 0
Is this what you mean?
Note that I have added two more rows to the sample data.

Excel Workbook
ABCDEF
1
2Europe300450
3Europe50350
4Europe450300
5Europe350200
6Europe200200
7Cina200100
8Europe10050
9Cina5050
10Cina200
11Europe350
12
Order
 
Upvote 0
Is this what you mean?
Note that I have added two more rows to the sample data.

Order

ABCDEF
1
2Europe 300 450
3Europe 50 350
4Europe 450 300
5Europe 350 200
6Europe 200 200
7Cina 200 100
8Europe 100 50
9Cina 50 50
10Cina 200
11Europe 350
12

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:60px;"><col style="width:23px;"><col style="width:56px;"><col style="width:22px;"><col style="width:26px;"><col style="width:46px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
F2=IFERROR(AGGREGATE(14,6,C$2:C$11/(MATCH(A$2:A$11&C$2:C$11,A$2:A$11&C$2:C$11,0)=(ROW(C$2:C$11)-ROW(C$2)+1)),ROWS(F$2:F2)),"")

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4


Your formula is working!! Thank you very much!!!!
 
Upvote 0

Forum statistics

Threads
1,214,422
Messages
6,119,396
Members
448,891
Latest member
tpierce

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top