What formula can I use?

I am creating a price list for all my products. This list acts as a database for invoice printing when customer comes to buy.
The logic is that once I input a product code in the invoice, the invoice can fill up automatically by looking up data from the price list. There are 3 prices for a product: first for normal customer, second for superior customer and third for VIP customer.
Make it simple, in the price list, it goes like this:
Product code |001|002|
Normal price |$40|$80|
Superior price |$38|$75|
VIP price |$35|$68|
In the invoice
Product code|Product Name|Customer Type|Price|Quantity|Subtotal|
001 | XXX | Superior | | | |
So which formula I can use so that the correct price will show in for the correct product?
I think it needs multiple formula to accomplish. Need help!!! Thank so much.

Hi k'
Welcome to Apple Discussions and the numbers '09 forum.
Assuming that a customer will have the same 'customer level' for all products, I would make one change to the Invoice table he proposes.
Rather than placing a 'customer level' pop-up on each row of the invoice, place a single cell in the Customer Information portion of the invoice (which could be on a separate table on the same sheet), then use a fixed reference to that cell in place of the $C2 reference in Yvan's formula.
KOENIG Yvan wrote:
Cell C2 is defined as a popUp menu with the values : Normal, Superior, VIP
In cell D2, the formula is :
=IFERROR(VLOOKUP($A2,Prices :: $A:$E,HLOOKUP($C2,Prices :: $1:$2,2,0),0),"")
For the example formula below I've placed the popup on a new table, "Sold To", that would contain the customer's name, address, etc. and the customer level for that customer. The 'customer level' pop-up is in cell B5
Yvan's formula becomes:
=IFERROR(VLOOKUP($A2,Prices :: $A:$E,HLOOKUP(Sold To :: $B$5,Prices :: $1:$2,2,0),0),"")
Regards,
Barry

Similar Messages

  • I want to accumulate rain for the day, month and year; What formula can I use?

    I want to accumulate rain for the day, month and year; What formula or expression can I use.
    I am using a Rain Wise product that converts pulses to an analog value.  The Rain Wise device can be
    set to measure up to 1", 5", or 10".  I will be setting the unit to 10 inches in increments of 0.01 inches.
    What I would like to do is everytime the signal increments I would like to count it as 0.01 then after reaching
    a period of time whether it be a day or a month reset back to zero.
    Need some advise on this problem.
    Solved!
    Go to Solution.

    Hello Ryan,
    Lookout gets a Modbus over Ethernet signal which originates as a 4-20mA input to a Moxa Ethernet I/O Module (E1240) in the field.  In Lookout I created a ModbusEthernet Driver and a tag which scales 0 - 65534 RAW to 0-10 Eng.  [0 - 10 is inches of rain]  Also, another piece of information is that after the rain gauge maxes out at 10 inches it will zero out and start over.
    I though the accumulator was time based and took a sample over a specific time period, for instance, one sample every 30 seconds then accumulate.  If this is so then if I have 5 inches of rain and then it stopped raining, then 30 seconds latter it would sample, it would see 5 inches and add that to be 10 inches when actually it had only rained 5 inches. 
    I really need some help with this process,
    David Lopez
    City of Corpus Christi

  • A simple percentage? How does one add a percentage to a number? If I have 100 and I want to add 15% and get a total, what formula would I use?

    How does one add a percentage to a number? If I have 100 and I want to add 15% and get a total, what formula would I use?

    You can do something like this:
    D2=B2*(1+C2/100)
    this means in the cell D2 type the following "=B2*(1+C2/100)"... leave out the double quotes

  • What formula do I use to show the net value (less 23% tax).

    In Numbers, what formula do I use to show the net value (i.e. less 23% tax).

    thejuddo writes:
    "$100 plus sales tax of 23% would be $123.00 but in order to get the net value of $123.00 less the tax I would have to divide by 1.23 not multiply by 23% and then minus it."
    Correct;
    The 23% tax is 23 one hundredths of the base amount, and is applied to that amount. As a formula, this can be stated as:
    =B2+B2*C2
    or
    =B2*(1+C2)
    (either applying to the data arrangement shown in the top table, and entered in  D2 of that table)
    In the other direction, though (bottom table), we start with the Gross amount and the Tax rate as known quantities, from which we are to determine the base amount, remembering that the 23% Tax rate is 23% of the Base amount, not 23% of the Gross amount.
    Rewriting the two formulas above as equations, with g, b, and t as the variables, we get:
    g = b + (b * t) 
    g = b(1+t)
    Solving the second for b:
    b - g/(1+t)
    Expressed as a formula (with the data as arranged in the bottom table, and the formula in D2):
    D2: =B2/(1+C2)
    In both directions, it may be prudent to round the result to the nearer hundredth, as done here for the calculation immediately above:
    =ROUND(B2/(1+C2),2)
    Regards,
    Barry

  • HT3224 What cable can I use to transfer data from a 2008 MacBook Pro to a new MacBook Pro with thunderbolt?

    What cable can I use to transfer data from a 2008 MacBook Pro to a new MacBook Pro with thunderbolt?

    You should also ask this in the MacBook Pro forum. This is the forum for the 13” white and black plastic MacBooks that were discontinued in 2010. You should also post this question there to increase your chances of getting an answer.
    https://discussions.apple.com/community/notebooks/macbook_pro

  • Dead Hard Drive - What replacement can I use for iBook G4?

    I have a
    Machine Model: iBook G4
    CPU Type: PowerPC G4 (3.3)
    Number Of CPUs: 1
    CPU Speed: 933 MHz
    L2 Cache (per CPU): 256 KB
    Memory: 384 MB (Upgraded to 1Gig)
    Bus Speed: 133 MHz
    Mac OSX 10.3.9.
    The hard drive died. What type and manufacrure do I need. Is it a Serial, ATA or IDE? What sizes can I use 40G, 60G, 80G, or 100G?
    Thanks for your help.

    but if your ibook was made before 2003 the limit for hard drives is 128GB any mac made before 2003 has this limit.
    heres a take aprt manual
    http://www.sterpin.net/uk/ddibookg4uk.htm

  • I have a power mac g4 with mac os 10.4. 11 , I want to change the hard-drive ,what program  can I used  to transfer one hard-drive  to another  hard- drive  on this mac pc.

    I have a power mac g4 with mac os 10.4. 11 , I want to change the hard-drive
    ,what program  can I used  to transfer one hard-drive  data to another  hard- drive  on this mac pc.

    The Disk Utility, Carbon Copy Cloner, SuperDuper, or similar software. For best results, place the second drive inside the computer or in a FireWire enclosure and boot the computer from it before removing the internal drive.
    (66989)

  • What else can I use beside Compressor?!

    Compressor is now useless to me. Unknown time remaining will not fix. What else can I use? Anyone know?

    Look, we understand your frustration and, since we've been hanging out here a long time, we differentiate newbie issues as separate from actual or legitimate problems by seeking information newbies refuse or simply do not understand how to supply. You've added significant information that will allow us to assist you.
    Compared to the hundreds of thousands of successful and happy Compressor users, "plenty of people" is not significant.
    The next post in this thread suggests your only hope is a complete system wipe and reinstallation. Do you want to try that and report back to us?
    It is useless if it doesnt work and yes I've never gotten to use it. I have used lessons on lynda.com. It's not that I don't know what I'm doing. Try a simpler batch, I was using the simplest of batches. The setting is conventional. I spent time on the phone with 2 different Apple tech people who know compressor. I assure you I have spent the entire day trying to fix this to no avail.
    I've learned that plenty of other people have this same problem with no solution being offered here or from Apple.
    <
    bogiesna

  • What program can I use to...

    What program can I use to screen record things on my mac?

    You can use QuickTime Player. Open QuickTime Player and go to File > New Screen Recording. Also, you can purchase Screenflow in the App Store because it's more advanced

  • I received a ms publisher file what program can i use to open and edit

    i received a ms publisher file what program can i use to open and edit

    There is no program that can open Publisher files except Publisher. It doesn't matter whether you use Windows or a Mac, Publisher files must have Publisher.
    Publisher does not have a Mac version so you will need Windows (and Publisher)

  • What program can I use to open documents

    What program can I use to open documents with; if I am running OSX 10.6.8 and only have Text edit?

    What kind documents of documents do you want to open? Just to read or write too?
    Besides TextEdit, you also have Preview that can display a wide gamut of document types as well.
    As for office documents, may want to download and install LibreOffice to deal with the usual suspects: .doc, .xls, .ppt   http://www.libreoffice.org/

  • What program can i use to type papers/essays on my MacBook

    What program can i use to type papers/essays on my MacBook? (Mac OS X) Version 10.5.8

    IRIS0321 wrote:
    What program can i use to type papers/essays on my MacBook? (Mac OS X) Version 10.5.8
    You can use Textedit, it's on your Mac in the Applications folder, or you can download any of the ones suggested by shldr2thewheel, also Google for Bean, a free word processor for the Mac.

  • What function can be used to give a "count of occurrences of values" ?

    I would be very appreciative if someone in the user community could save me a few months of work....I've already been neck deep in my old statistics and calculus manuals. What function can be used to get the count of occurrences of the value of an item. Ex: Item is Status and possible values are "Published", "In Production", "Construction". In one report, I want to report all records of a table and list the Status (among other items) but at the total, I would like to see a count of each value for the item Status....something like Sum(Count(Status = "Published")) Sum(Count(Status = "In Production")) Sum(Count(Status = "Construction")). I know I could run the report 3 times counting a unique value, but I'm trying to be more efficient in my reporting. Thanks all for any help given.

    Hi
    In addition to John's answer, inside Discoverer you can do this:
    Let's assume you have a Status item and it has the values you mention. If you create the following new calculation SUM(ROWNUM) and name it Status Count you only need to include the Status and the Status Count in the worksheet. You will now see a count for each status.
    Best wishes
    Michael

  • What query can we use ...for over 30 days

    select PROPERTY,RELAVANTDATE ,
    sum(NOTICES) over (
    partition by property
    order by RELAVANTDATE
    range between interval '30' day preceding and current row
    ) "SUM"
    from Test_Data
    what query can we use ...for over 30 days
    can i use following or preceding

    SCOTT@soti_9> WITH Test_Data AS (
      2    select 10100 as property, to_date('25-JAN-07') as RelavantDate, 20 as notices from dual union all
      3    select 10100 as property, to_date('25-DEC-07') as RelavantDate, 5 as notices from dual union all
      4    select 10100 as property, to_date('02-JAN-08') as RelavantDate, 10 as notices from dual union all
      5    select 10100 as property, to_date('01-DEC-08') as RelavantDate, 10 as notices from dual union all
      6    select 10100 as property, to_date('02-DEC-08') as RelavantDate, 20 as notices from dual union all
      7    select 10100 as property, to_date('31-DEC-08') as RelavantDate, 20 as notices from dual union all
      8    select 10100 as property, to_date('03-JAN-09') as RelavantDate, 30 as notices from dual union all
      9    select 10100 as property, to_date('25-JAN-09') as RelavantDate, 20 as notices from dual
    10  )
    11  select PROPERTY,RELAVANTDATE ,
    12    sum(NOTICES) over (
    13      partition by property
    14      order by RELAVANTDATE
    15      range between current row and interval '30' day following
    16    ) "SUM"
    17  from Test_Data
    18  ;
      PROPERTY RELAVANTD        SUM
         10100 25-jan-07         20
         10100 25-dec-07         15
         10100 02-jan-08         10
         10100 01-dec-08         50
         10100 02-dec-08         40
         10100 31-dec-08         70
         10100 03-jan-09         50
         10100 25-jan-09         20
    8 rows selected.Regards,
    Dima

  • What else can be used

    Hi all,
    am having problem to iterate to next record when using when validate record trigger.
    what else can be used instead of next_record to iterate through?
    thanks.

    following is the problem where i have to calculate backlog by comparing it with the value presented in the database and that of the changed by user.
    for exmaple in ven_share table share_quota defined was 100% and user changes it to 40 backlog should contain 60
    upto this my logic is working fine but when i iterate to next record i want backlog to show previous + newly changed value..
    can you suggest now how can it work in any other way??
    declare
         v_share number(3);
         bck number(4);
    --     total_bck number(3);
    cursor c1 is select share_quota from ven_share where vendor_code=:ven_share.vendor_code;
    begin
              first_record;
    --open c1;
    --fetch c1 into v_share;
    for i in c1
    loop
         v_share:=i.share_quota;
         if v_share<>:ven_share.share_quota--,:system.cursor_record
              then
              if v_share>:ven_share.share_quota
                   then
                   :ven_share.backlog:=v_share-:ven_share.share_quota;
                   bck:=:ven_share.backlog;
                   --next_record;
    --     total_bck:=bck+v_share-:ven_share.share_quota;
              end if;
         end if;
    --          if :ven_share.vendor_code is null
    --               then
    --                    null;
                        --bck:=:ven_share.backlog;
              --     else
              --     if v_share>:ven_share.share_quota then
                                       --     message(v_share);
         --     message(:ven_share.share_quota);
              --          :ven_share.backlog:=bck+v_share-:ven_share.share_quota;
         --     end if;     
    --          end if;
         --     end if;
    --     end if;
    EXIT WHEN :SYSTEM.LAST_RECORD ='TRUE';
    --NEXT_RECORD;     
    end loop;
    end;
    thanks

Maybe you are looking for