Calculated Field Question - Count each value only once

MikeGeno

Board Regular
Joined
Apr 4, 2008
Messages
130
I have pivot table with 6 Columns

Month
Item Code
Unit Sales
Sales Dollars
Invoice Price
Price Increase

I have 12 months worth of data so each Item code shows up 12 times in the data table (once for each month)

The Price Increase field in my data set is a vlookup from a user input sheet that lists the codes and the user must input the % they would increase price.

Once the user inputs a value into the table by code that percentage is updated in my data set. So if they input 5% I will have 12 records that show 5% for that Item code in the Price increase field.

I want to use a calculated field to calculate my new invoice price. I set up a field called new Invoice and the formula is Invoice Price * (1 + Price Increase)

If the invoice price is $1.00 and they enter 5% it would be $1.00 * (1 +5%) = $1.05

My issue I am having is that if there are 12 values showing 5% it is calculating $1.00 * (1 + 60%) = $1.60 it is adding all of the 5% records together for that code.

Does anyone know how I could tell it to only grab the value only once, or is there some way I can tweak my vlookup to only show that increase once for each item. IE the first time code 123 shows up put the 5% value and all subsequent records of that item not show an increase?
 
Last edited:

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,214,791
Messages
6,121,611
Members
449,038
Latest member
apwr

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