Problem with cell value in table based on two conditions

AwesomeM

New Member
Joined
Jan 18, 2013
Messages
8
I am facing a problem making a table which contains the usage values of certain articles in Excel 2007. The table should show the monthly usage twelve months in history of a insertable value, for instance December, which I have inserted using =TEXT(O2;"00")&"-"&03. This first part works fine.

The values in the table should be based on two conditions: the month (in the row above, given as e.g. "12-2012") and the article code (in the first column, given as e.g. 2365721). The monthly usage numbers are located in another worksheet. I currently use:

=IF(AND(04='Forecast '!2:2;A5='Forecast'!A:A);'Forecast'!W1;0)) which always gives the value 0.

I have tried various formulas, such as VLOOKUP, but non seem to work properly. Note that the it has to be able to change the insertable value, such that when the forecast for next month is made, Januari can be inserted and the values up to 12 months back are given. And as such any month in the past few years.

Your help will be much appriciated!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,223,244
Messages
6,170,976
Members
452,372
Latest member
Natalie18

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