populate unit price dependent on area and codes selected.

carrieann

New Member
Joined
Mar 1, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I am trying to create an invoice. I have 5 different areas. i have my invoice set up with a drop down to select one of the 5 areas. Then below I have a drop down of codes. And when I select a code it will automatically populate the descriptions. What I cant figure out is how do I auto populate the price based on the area it is in.

Each are has the same codes, but the prices are different.
example: code aa00 in job area 1 is $2, in job area 2 it is $5, job area 3 it is $10.

my price list is set up on a different sheet. this is how it is set up.
codedescriptionjob area 1job area 2job area 3job area 4job area 5

this is the main sheet the red cloud is the cell I am looking to populate.
1709333214947.png
 

Attachments

  • 1709333110156.png
    1709333110156.png
    41.3 KB · Views: 3

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Try:
Excel Formula:
=INDEX($A$1:$G$100,Match(cellrefCODE,$A$1:$A$100,0),Match(cellRefJobArea,$A$1:$G$1,0))

This is assuming the dropdown for job area has the values in cells $C$1:$G$1: {"job area 1"," job area 2"," job area 3"," job area 4"}
Otherwise, please post some sample data and expected returned values.
 
Upvote 0
i'm not sure what i'm supposed to do with that information.

plugging those references in give me this:
from this:
=INDEX($A$1:$G$100,Match(cellrefCODE,$A$1:$A$100,0),Match(cellRefJobArea,$A$1:$G$1,0))
to this (so put this in Cell F22):
=INDEX($A$1:$G$100,Match(A22,$A$1:$A$100,0),Match(D17,$A$1:$G$1,0))

If this doesn't work for you: Then I will politely ask again: Please post sample data and expected returns?
 
Upvote 0

Forum statistics

Threads
1,215,077
Messages
6,122,991
Members
449,094
Latest member
masterms

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