Price changes in several Rows to one row.

Rahul79

New Member
Joined
Sep 3, 2009
Messages
25
Hi All,

In short, I am working on this complex Access DB for which the data for one of the Tables is very important.

The Data:

It consists of Rate changes to a specific type of service that is different per region and state.

Implying, the headers are: Region, State, Company, Type Code, Service Code, Rate1 (Flat), Rate 2(By units used), Effective Date, Termination Date.

If Rate1 exist, implies Rate 2 = 0 and vice versa.

What I am trying to do is to bring all rates in one row. There is a maximum of 2 rate changes that I deal with.

So I want a new sheet with the following headers:
Region, State, Company, Type Code, Service Code, Old Rate1, Old Rate2, Effective Date, Term Date, Old1 Rate 1, Old1 Rate 2, Effective Date Term Date, Current Rate 1, Current Rate 2, Effective Date Term Dat.


Is there a easy way to do it? I have already messed around with Lookup's and If statements but all yield to errors, and certain of it could be my fault as I am also creating several iif commands in Access as well.

Any help would be highly appreciated. Even a direction I need to go to, and I can manage the rest.

Thanks.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,947
Latest member
Gerry_F

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