XML 59 R44.htm IDEA: XBRL DOCUMENT
v3.7.0.1

INVESTMENTS (Details) $ in Thousands, gal in Millions | 3 Months Ended | 12 Months Ended |
--- | --- | --- | ---
Apr. 30, 2016 USD ($) | Jan. 31, 2017 USD ($) gal | Jan. 31, 2016 USD ($) | Jan. 31, 2015 USD ($) | Jan. 31, 2009
INVESTMENTS (Details) [Line Items] |  |  |  |  |
Income (Loss) from Equity Method Investments |  | $ 6,144 | $ 8,984 | $ 32,229 |
Equity Method Investments |  | 37,833 | 38,707 |  |
Gain (Loss) on Sale of Investments | $ 200 | 192 | 10,385 |  |
Accounts Receivable, Net, Current |  | 11,901 | 13,666 |  |
Retained Earnings, Undistributed Earnings from Equity Method Investees |  | 17,800 | 18,700 |  |
Big River [Member] |  |  |  |  |
INVESTMENTS (Details) [Line Items] |  |  |  |  |
Agreement to Invest During Year |  | $ 20,000 |  |  |
Equity Method Investment, Ownership Percentage |  | 9.70% |  |  |
Income (Loss) from Equity Method Investments |  | $ 6,100 | 6,000 | 18,200 |
Proceeds from Equity Method Investment, Distribution |  | 7,000 | 7,500 | 18,000 |
Equity Method Investments |  | 37,833 | $ 38,707 |  |
Equity Method Investment, Underlying Equity in Net Assets |  | 37,200 |  |  |
Other Restricted Assets |  | 278,700 |  |  |
Proportionate Share of Restricted Net Assets |  | $ 27,000 |  |  |
Big River [Member] | Burlington [Member] |  |  |  |  |
INVESTMENTS (Details) [Line Items] |  |  |  |  |
Quantity of ethanol shipped (in US Gallons) | gal |  | 107 |  |  |
Big River [Member] | Illinois [Member] |  |  |  |  |
INVESTMENTS (Details) [Line Items] |  |  |  |  |
Quantity of ethanol shipped (in US Gallons) | gal |  | 125 |  |  |
Big River [Member] | Dyersville [Member] |  |  |  |  |
INVESTMENTS (Details) [Line Items] |  |  |  |  |
Equity Method Investment, Ownership Percentage |  |  | 55.30% |  | 50.50%
Quantity of ethanol shipped (in US Gallons) | gal |  | 128 |  |  |
Big River [Member] | Boyceville [Member] |  |  |  |  |
INVESTMENTS (Details) [Line Items] |  |  |  |  |
Quantity of ethanol shipped (in US Gallons) | gal |  | 57 |  |  |
Big River [Member] | Big River Resources United Energy LLC [Member] |  |  |  |  |
INVESTMENTS (Details) [Line Items] |  |  |  |  |
Equity Method Investment, Ownership Percentage |  | 55.30% |  |  |
Patriot [Member] |  |  |  |  |
INVESTMENTS (Details) [Line Items] |  |  |  |  |
Equity Method Investment, Ownership Percentage |  | 27.00% |  |  |
Income (Loss) from Equity Method Investments |  |  | $ 2,900 | 14,000 |
Proceeds from Equity Method Investment, Distribution |  |  | $ 3,600 | $ 4,900 |
Equity Method Initial Investments |  | $ 17,900 |  |  |
Business Acquisition, Percentage of Voting Interests Acquired |  | 100.00% |  |  |
Gain (Loss) on Disposition of Business |  | $ 45,500 |  |  |
Business Combination, Consideration Transferred |  | 196,000 |  |  |
Gain (Loss) on Sale of Investments |  | 10,400 |  |  |
Proceeds From Payment For Escrow Holdbacks And Adjustments |  | 4,500 |  |  |
Accounts Receivable, Net, Current |  | $ 100 |  |  |

X
- Definition Agreement to invest during year. + References No definition available. + Details
Name: | rex_AgreementToInvestDuringYear
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Equity method initial investments. + References No definition available. + Details
Name: | rex_EquityMethodInitialInvestments
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- References No definition available. + Details
Name: | rex_INVESTMENTSDetailsLineItems
Namespace Prefix: | rex_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | rex_ProceedsFromPaymentForEscrowHoldbacksAndAdjustments
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Proportionate share of restricted net assets as of the reporting date. + References No definition available. + Details
Name: | rex_ProportionateShareOfRestrictedNetAssets
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Quantity of ethanol shipped. + References No definition available. + Details
Name: | rex_QuantityOfEthanolShipped
Namespace Prefix: | rex_
Data Type: | num:volumeItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount due from customers or clients, within one year of the balance sheet date (or the normal operating cycle, whichever is longer), for goods or services (including trade receivables) that have been delivered or sold in the normal course of business, reduced to the estimated net realizable fair value by an allowance established by the entity of the amount it deems uncertain of collection. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(3)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(4)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_AccountsReceivableNetCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Percentage of voting equity interests acquired at the acquisition date in the business combination. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463 + Details
Name: | us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of consideration transferred, consisting of acquisition-date fair value of assets transferred by the acquirer, liabilities incurred by the acquirer, and equity interest issued by the acquirer. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 30 -Paragraph 7 -URI http://asc.fasb.org/extlink&oid=6911251&loc=d3e6578-128477 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=35744584&loc=d3e6927-128479 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 30 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=6911251&loc=d3e6613-128477 + Details
Name: | us-gaap_BusinessCombinationConsiderationTransferred1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of distribution received from equity method investee for return on investment, classified as operating activities. Excludes distribution for return of investment, classified as investing activities. + References Reference 1: 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 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 Reference 3: 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 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 21D -URI http://asc.fasb.org/extlink&oid=98514028&loc=SL94080555-108585 + Details
Name: | us-gaap_EquityMethodInvestmentDividendsOrDistributions
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The percentage of ownership of common stock or equity participation in the investee accounted for under the equity method of accounting. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 50 -Paragraph 3 -Subparagraph (a)(1) -URI http://asc.fasb.org/extlink&oid=66011266&loc=d3e33918-111571 + Details
Name: | us-gaap_EquityMethodInvestmentOwnershipPercentage
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition This item represents the entity's ownership percentage in the investee multiplied by the investee's total equity. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 50 -Paragraph 3 -Subparagraph (a)(3) -URI http://asc.fasb.org/extlink&oid=66011266&loc=d3e33918-111571 + Details
Name: | us-gaap_EquityMethodInvestmentUnderlyingEquityInNetAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition This item represents the carrying amount on the entity's balance sheet of its investment in common stock of an equity method investee. This is not an indicator of the fair value of the investment, rather it is the initial cost adjusted for the entity's share of earnings and losses of the investee, adjusted for any distributions (dividends) and other than temporary impairment (OTTI) losses recognized. + References Reference 1: 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 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.12) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_EquityMethodInvestments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Gain (loss) from sale or disposal of an organization or integrated set of activities (for example, but not limited to, a partnership or corporation) engaged in providing a product or service in a commercial, industrial, or professional environment. + References No definition available. + Details
Name: | us-gaap_GainLossOnSaleOfBusiness
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
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 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 Total assets that cannot be used for operating purposes because of contract or regulatory requirements that are in effect for a period that extends beyond one year. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.17) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_OtherRestrictedAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of consolidated retained earnings that represent undistributed (not yet received) earnings from 50% or less owned persons accounted for by the equity method (equity method investees). + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 852 -SubTopic 20 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=6462270&loc=d3e57205-112772 + Details
Name: | us-gaap_RetainedEarningsUndistributedEarningsFromEquityMethodInvestees
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis=rex_BigRiverMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementGeographicalAxis=rex_BurlingtonMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementGeographicalAxis=rex_IllinoisMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementGeographicalAxis=rex_DyersvilleMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementGeographicalAxis=rex_BoycevilleMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | dei_LegalEntityAxis=rex_BigRiverResourcesUnitedEnergyLLCMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis=rex_PatriotMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |