+ Reply to Thread
Results 1 to 12 of 12

Which formula do i need to calculate based on criteria

  1. #1
    Registered User
    Join Date
    10-07-2017
    Location
    London
    MS-Off Ver
    365
    Posts
    12

    Which formula do i need to calculate based on criteria

    Hi all, I'm new to this forum and looking for some guidance. I know Excel but not up to speed with certain formulas.
    Basically I have the following problem I'm trying to resolve.

    On the sheet I am working on, which is an order form with one field having a figure excl. VAT and another Incl. VAT and depending on the item selected I need the correct figure populating in a certain cell. This is how the layout is and I need it to be.

    C90 - I have text (example, apples is Excl. VAT and oranges is Incl. VAT)
    V90 - Figure Excl. VAT
    W90 - Figure Incl. VAT
    H36 - Is where I need the figure to go.

    So, basically if a excl VAT item is selected, how do i get the V90 figure to enter in H36?

    Hope someone can help me out with this.

    Thanks in advance
    Attached Files Attached Files
    Last edited by sMart_D1006; 10-08-2017 at 12:34 PM. Reason: Amend title

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,101

    Re: Maybe VLOOKUP

    is there anything to say if VAT or NOT vat in the row
    otherwise you are going to need a lookup table

    a table of products and the codes for VAT / Non Vat
    then lookup
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    10-07-2017
    Location
    London
    MS-Off Ver
    365
    Posts
    12

    Re: Maybe VLOOKUP

    I have the excl. VAT figure in V90 and in W90 i have the formula =V90*1.2.

    Just really stuck on this one and can't figure it out.

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,101

    Re: Maybe VLOOKUP

    a little confused
    C90 - I have text (example, apples is Excl. VAT and oranges is Incl. VAT)

    how does excel know to include or exclude VAT
    if you have Apples - whats in V90 and in W90
    if you have Oranges - whats in V90 and in W90


    lets say Apple is 100 net same as Oranges
    then apples would need VAT added so * 1.2
    BUT oranges does not have VAT -
    how does excel know that ?

  5. #5
    Registered User
    Join Date
    10-07-2017
    Location
    London
    MS-Off Ver
    365
    Posts
    12
    It doesn't. Basically I have a table of all data then using VLOOKUP it pulls it though to another sheet that's in a format to print and puts the data in selected parts. That was the only way I could think of doing it but then got stuck buy getting the correct figure to populate where I need it. Basically if it says apples I need it to show excl. Vat and oranges incl. Vat. Does that make more sense???

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,101

    Re: Maybe VLOOKUP

    not really
    how does excel know Apples excludes VAT and Oranges include vat , pears, grapes, bananas etc etc
    - how do you know what to include and what to exclude ?
    excel has to know what to exclude and what to include
    if that information is not in the table somewhere / some how or on another list excel would not know
    nor would anyone else reading the spreadsheet , you must know your self - how do you know what to include and what to exclude ?

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Maybe VLOOKUP

    rather than guessing...

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  8. #8
    Registered User
    Join Date
    10-07-2017
    Location
    London
    MS-Off Ver
    365
    Posts
    12

    Re: Maybe VLOOKUP

    I have attached a sample of my spreadsheet and put a note on there, hopefully clear to understand to what I am trying to accomplish.
    Attached Files Attached Files

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,404

    Re: Which formula do i need to calculate based on criteria

    Not quite sure what you are trying to do - what is your expected outcome and why?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Which formula do i need to calculate based on criteria

    How is Excel supposed to know whether or not VAT applies to apples? You need to have a table of commodities and yes/no for VAT liability. Then it's easy...

    Something like this???
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    10-07-2017
    Location
    London
    MS-Off Ver
    365
    Posts
    12

    Re: Which formula do i need to calculate based on criteria

    Thanks Glenn, that has worked perfectly. I didn't realise I would have to populate the figures next to each description as you have done in A19:B20. Least I know now for future reference.

    Thank you all for your time and input.

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Which formula do i need to calculate based on criteria

    You're welcome. If you do not have that information somewhere... Excel cannot work it out by itself. Thanks for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 12-07-2016, 09:18 AM
  2. Using vLookup based on results from a vLookup & returning an undetermined list
    By NormalityBan in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 08-14-2014, 05:02 AM
  3. Replies: 0
    Last Post: 12-26-2013, 01:12 PM
  4. Display Cell within VLookup range that excel thinks matches the VLookup Value
    By headachexcelperson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2013, 04:56 PM
  5. [SOLVED] Vlookup is not working and giving =vlookup(B2,$T$2:$U$135,2,false) this kind of values.
    By yogeshsharma1981 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2013, 04:08 PM
  6. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  7. Replies: 5
    Last Post: 07-29-2009, 07:53 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1