XML 86 R71.htm IDEA: XBRL DOCUMENT
v3.8.0.1

SEGMENT REPORTING (Details) - Schedule Of Segment Results And Assets - USD ($) $ in Thousands | 3 Months Ended | 12 Months Ended
--- | --- | ---
Jan. 31, 2018 | Oct. 31, 2017 | Jul. 31, 2017 | Apr. 30, 2017 | Jan. 31, 2017 | Oct. 31, 2016 | Jul. 31, 2016 | Apr. 30, 2016 | Jan. 31, 2018 | Jan. 31, 2017 | Jan. 31, 2016
Segment Reporting Information [Line Items] |  |  |  |  |  |  |  |  |  |  |  |
Net sales and revenue: |  |  |  |  |  |  |  |  |  | $ 452,586 | $ 453,799 | $ 436,488
Segment gross profit (loss): |  | $ 6,024 | $ 14,867 | $ 10,781 | $ 12,489 | $ 25,171 | $ 20,162 | $ 17,284 | $ 8,422 | 44,161 | 71,039 | 50,834
Income (loss) before income taxes: |  |  |  |  |  |  |  |  |  | 25,393 | 56,911 | 51,518
Benefit (provision) for income taxes: |  |  |  |  |  |  |  |  |  | 19,519 | (17,393) | (14,108)
Segment profit (loss): |  |  |  |  |  |  |  |  |  | 39,706 | 32,333 | 31,436
Sales of products |  |  |  |  |  |  |  |  |  | 452,153 | 453,799 | 436,488
Interest income: |  |  |  |  |  |  |  |  |  | 1,556 | 434 | 381
Depreciation expense: |  |  |  |  |  |  |  |  |  | 21,462 | 19,519 | 18,638
Equity in income of unconsolidated affiliates: |  |  |  |  |  |  |  |  |  | 3,232 | 6,144 | 8,984
(Loss) gain on sale of investment: |  |  |  |  |  |  |  |  |  | (13) | 192 | 10,385
Ethanol [Member] |  |  |  |  |  |  |  |  |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |  |  |  |  |  |  |  |  |
Net sales and revenue: |  |  |  |  |  |  |  |  |  | 452,153 | 453,799 | 436,488
Segment gross profit (loss): |  |  |  |  |  |  |  |  |  | 51,509 | 71,039 | 50,834
Income (loss) before income taxes: |  |  |  |  |  |  |  |  |  | 38,352 | 59,447 | 53,469
Benefit (provision) for income taxes: |  |  |  |  |  |  |  |  |  | 3,245 | (18,259) | (14,690)
Segment profit (loss): |  |  |  |  |  |  |  |  |  | 35,880 | 33,950 | 32,734
Sales of products |  |  |  |  |  |  |  |  |  | 359,239 | 358,349 | 333,200
Interest income: |  |  |  |  |  |  |  |  |  | 878 | 212 | 176
Depreciation expense: |  |  |  |  |  |  |  |  |  | 20,037 | 19,464 | 18,559
Equity in income of unconsolidated affiliates: |  |  |  |  |  |  |  |  |  | 3,232 | 6,144 | 8,984
(Loss) gain on sale of investment: |  |  |  |  |  |  |  |  |  | (13) | 192 | 10,385
Refined Coal [Member] |  |  |  |  |  |  |  |  |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |  |  |  |  |  |  |  |  |
Net sales and revenue: | [1] |  |  |  |  |  |  |  |  | 433 |  |
Segment gross profit (loss): |  |  |  |  |  |  |  |  |  | (7,348) |  |
Income (loss) before income taxes: |  |  |  |  |  |  |  |  |  | (10,021) |  |
Benefit (provision) for income taxes: |  |  |  |  |  |  |  |  |  | 15,168 |  |
Segment profit (loss): |  |  |  |  |  |  |  |  |  | 5,628 |  |
Sales of products |  |  |  |  |  |  |  |  |  | 433 |  |
Depreciation expense: |  |  |  |  |  |  |  |  |  | 1,385 |  |
Corporate and Other [Member] |  |  |  |  |  |  |  |  |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |  |  |  |  |  |  |  |  |
Income (loss) before income taxes: |  |  |  |  |  |  |  |  |  | (2,938) | (2,536) | (1,951)
Benefit (provision) for income taxes: |  |  |  |  |  |  |  |  |  | 1,106 | 866 | 582
Segment profit (loss): |  |  |  |  |  |  |  |  |  | (1,802) | (1,617) | (1,298)
Interest income: |  |  |  |  |  |  |  |  |  | 678 | 222 | 205
Depreciation expense: |  |  |  |  |  |  |  |  |  | 40 | 55 | 79
Dried Distillers Grains [Member] |  |  |  |  |  |  |  |  |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |  |  |  |  |  |  |  |  |
Sales of products |  |  |  |  |  |  |  |  |  | 63,120 | 71,204 | 81,116
Non-Food Grade Corn Oil [Member] |  |  |  |  |  |  |  |  |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |  |  |  |  |  |  |  |  |
Sales of products |  |  |  |  |  |  |  |  |  | 21,195 | 18,518 | 15,510
Modified Distillers Grains [Member] |  |  |  |  |  |  |  |  |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |  |  |  |  |  |  |  |  |
Sales of products |  |  |  |  |  |  |  |  |  | 8,525 | 5,326 | 5,999
Other Segments [Member] |  |  |  |  |  |  |  |  |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |  |  |  |  |  |  |  |  |
Sales of products |  |  |  |  |  |  |  |  |  | $ 74 | $ 402 | $ 663
[1] | Sales in the refined coal segment are recorded net of the cost of coal as the Company purchases the coal feedstock from the customer to which refined coal is sold.

X
- Definition The current period expense charged against earnings on long-lived, physical assets not used in production, and which are not intended for resale, to allocate or recognize the cost of such assets over their useful lives; or to record the reduction in book value of an intangible asset over the benefit period of such asset; or to reflect consumption during the period of an asset that is not used in production. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 360 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=98514028&loc=d3e3602-108585 + Details
Name: | us-gaap_DepreciationAndAmortization
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The net realized gain (loss) on investments sold during the period, not including gains (losses) on securities separately or otherwise categorized as trading, available-for-sale, or held-to-maturity, which, for cash flow reporting, is a component of proceeds from investing activities. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=98514028&loc=d3e3602-108585 + Details
Name: | us-gaap_GainLossOnSaleOfInvestments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Aggregate revenue less cost of goods and services sold or operating expenses directly attributable to the revenue generation activity. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 225 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.1,2) -URI http://asc.fasb.org/extlink&oid=63488584&loc=d3e20235-122688 + Details
Name: | us-gaap_GrossProfit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of income (loss) from continuing operations, including income (loss) from equity method investments, before deduction of income tax expense (benefit), and income (loss) attributable to noncontrolling interest. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 940 -SubTopic 20 -Section 25 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=68072869&loc=d3e41242-110953 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 225 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03(10)) -URI http://asc.fasb.org/extlink&oid=63488584&loc=d3e20235-122688 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 225 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-04(15)) -URI http://asc.fasb.org/extlink&oid=6879574&loc=d3e536633-122882 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 225 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-04(8)) -URI http://asc.fasb.org/extlink&oid=6879464&loc=d3e573970-122913 + Details
Name: | us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition This item represents the entity's proportionate share for the period of the net income (loss) of its investee (such as unconsolidated subsidiaries and joint ventures) to which the equity method of accounting is applied. This item includes income or expense related to stock-based compensation based on the investor's grant of stock to employees of an equity method investee. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 225 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03(12)) -URI http://asc.fasb.org/extlink&oid=63488584&loc=d3e20235-122688 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 225 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-04(10)) -URI http://asc.fasb.org/extlink&oid=6879464&loc=d3e573970-122913 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=98514028&loc=d3e3602-108585 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=66022249&loc=d3e33749-111570 Reference 5: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 225 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-04(13)(f)) -URI http://asc.fasb.org/extlink&oid=6879574&loc=d3e536633-122882 + Details
Name: | us-gaap_IncomeLossFromEquityMethodInvestments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 9 -Subparagraph (a),(b) -URI http://asc.fasb.org/extlink&oid=84230637&loc=d3e32639-109319 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08.(h)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 + Details
Name: | us-gaap_IncomeTaxExpenseBenefit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of operating interest income, including, but not limited to, amortization and accretion of premiums and discounts on securities. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 225 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.1(e)) -URI http://asc.fasb.org/extlink&oid=63488584&loc=d3e20235-122688 + Details
Name: | us-gaap_InterestIncomeOperating
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount, after deduction of tax, noncontrolling interests, dividends on preferred stock and participating securities; of income (loss) from continuing operations available to common shareholders. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 45 -Paragraph 11 -URI http://asc.fasb.org/extlink&oid=96947427&loc=d3e1377-109256 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 45 -Paragraph 60B -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=96947427&loc=SL5780133-109256 + Details
Name: | us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersBasic
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Aggregate revenue during the period from sale of goods in the normal course of business, before deducting returns, allowances and discounts. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 225 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.1(a)) -URI http://asc.fasb.org/extlink&oid=63488584&loc=d3e20235-122688 + Details
Name: | us-gaap_SalesRevenueGoodsGross
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Aggregate revenue during the period from the sale of goods in the normal course of business, after deducting returns, allowances and discounts. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 225 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.1(a)) -URI http://asc.fasb.org/extlink&oid=63488584&loc=d3e20235-122688 + Details
Name: | us-gaap_SalesRevenueGoodsNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_SegmentReportingInformationLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=rex_EthanolMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=rex_RefinedCoalMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=us-gaap_CorporateAndOtherMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=rex_DriedDistillersGrainsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=rex_NonFoodGradeCornOilMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=rex_ModifiedDistillersGrainsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=us-gaap_AllOtherSegmentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |