+ Reply to Thread
Results 1 to 12 of 12

Index formula

  1. #1
    Registered User
    Join Date
    07-15-2015
    Location
    new hampshire
    MS-Off Ver
    Office 2010
    Posts
    83

    Index formula

    Hi,

    In my previous post, I asked the question poorly.

    Here is the edit...:

    I need to exclude any "SKU" from tab "SKU" that are "Pants" as referred to in column B on "SKU", from the calculation in C31.

    Apologies.
    Thank you!
    Last edited by bryden2008; 06-05-2017 at 06:10 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Tough Formula Question

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Tough Formula Question

    Please change the title of your question to a more appropriate one.

    This is one of the forumrules.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    07-15-2015
    Location
    new hampshire
    MS-Off Ver
    Office 2010
    Posts
    83

    Re: Tough Formula Question

    Done.
    Thank you!

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Index formula

    In C33 cell of Input tab Sheet

    =IFERROR(VLOOKUP(A33,SKU!A:E,5,0),0)


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Index formula

    You lookup the rate in B33 and use that in C33 formula: so what is the issue?

  7. #7
    Registered User
    Join Date
    07-15-2015
    Location
    new hampshire
    MS-Off Ver
    Office 2010
    Posts
    83

    Re: Index formula

    Thank you John!

    I want the "pants" to not include the $5.00 in cell C31....=IF(B31=0,0,((B31+$D$29)*$C$29)/156)
    When VLOOKUP finds the rate as you noted, if it is a "pant" then the fomula should be =IF(B31=0,0,((B31)*$C$29)/156)

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Index formula

    Try

    =IF($B33=0,0,(($B33+IF(VLOOKUP($A33,SKU!$A$1:$B$1620,2,0)="Pants",0,$D$31))*$C$31)/156)

  9. #9
    Registered User
    Join Date
    07-15-2015
    Location
    new hampshire
    MS-Off Ver
    Office 2010
    Posts
    83

    Re: Index formula

    Ok, that formula excludes the shirts though.

    I am trying this -

    If A31 is found on SKU tab and is not a pant, then return (the cost in column 5+5.00)*2/156,
    If A31 is found on SKU tab and is a pant, then return (the cost in column 5)*2/156

    Note- I changed the attachment....

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Index formula

    You changed the data from the file I used : now row 31 not 33 so $C$29/$D$29 not $C$31/$D$31: these cells are ABSOLUTE references.

    =IF($B31=0,0,(($B31+IF(VLOOKUP($A31,SKU!$A$1:$B$1620,2,0)="Pants",0,$D$29))*$C$29)/156)

    My original formula

    =IF($B33=0,0,(($B33+IF(VLOOKUP($A33,SKU!$A$1:$B$1620,2,0)="Pants",0,$D$31))*$C$31)/156)
    Last edited by JohnTopley; 06-05-2017 at 11:48 AM.

  11. #11
    Registered User
    Join Date
    07-15-2015
    Location
    new hampshire
    MS-Off Ver
    Office 2010
    Posts
    83

    Re: Index formula

    Your formula works, thank you!

  12. #12
    Registered User
    Join Date
    07-15-2015
    Location
    new hampshire
    MS-Off Ver
    Office 2010
    Posts
    83

    Re: Index formula

    Yes you are right. I apologize. I figured that out after.
    Apologies and thank you!

+ 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. How to replace VLOOKUP formulas with values across entire workbook
    By pchurch in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2012, 05:45 PM
  2. tough question for the best of the best
    By rlandis67 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-04-2008, 10:55 PM
  3. tough spreadsheet question
    By mufan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-08-2008, 03:33 PM
  4. Here is a tough question! IF formula output
    By tailg8r in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-31-2007, 07:11 PM
  5. *Tough Math Question*
    By Spreadsheet in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-06-2006, 12:51 PM
  6. Tough Formula Question
    By shelfish in forum Excel General
    Replies: 6
    Last Post: 05-29-2006, 01:35 PM
  7. Tough question
    By SHAETY in forum Excel General
    Replies: 8
    Last Post: 02-17-2006, 12:35 AM
  8. [SOLVED] Tough Macro Question
    By Chris in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2005, 01:06 PM

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