+ Reply to Thread
Results 1 to 13 of 13

look up based on greeter than zero value and specific letters (can’t be done via formula,

  1. #1
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    471

    look up based on greeter than zero value and specific letters (can’t be done via formula,

    Hello All

    Please see attached

    On the breakdown tab - I need a look up in the highlighted in red area, if there’s a number in column F,G, H on the shortages tab it retunes what it is and sums the 3 coloured columns (currently manually done)
    Example
    It needs to look for everything with letters K P… then report anything that greater than zero please see highlighted example in red.. But it reports exactly what it is the K P variant is

    Shortages tab this pasted data. columns A – N data changes daily… no fixed data

    Breakdown tab looks at data from S-AA on the shortages tab
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,826

    Re: look up based on greeter than zero value and specific letters (can’t be done via form

    Do you know it can't be done using a formula, or are you guessing?
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    471

    Re: look up based on greeter than zero value and specific letters (can’t be done via form

    i was told by somone a lot smarter then me with excel.... he told me it it needs VBA...

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,826

    Re: look up based on greeter than zero value and specific letters (can’t be done via form

    Was that someone here? Are you suggesting that I'm not smart?

    He may be wrong ...

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,826

    Re: look up based on greeter than zero value and specific letters (can’t be done via form

    What I can tell you is this: having images for the company names is a no-no - they cannot be read by Excel. There's some bad data layout here - what you want to do is probably very easy, but will need some slight changes. I don't think you should need VBA for this.

  6. #6
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    471

    Re: look up based on greeter than zero value and specific letters (can’t be done via form

    The only data that can't be changed is shoartages tab column A-N as this is pasted from a system that i use...

    The logos are just to make it look pretty...

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,826

    Re: look up based on greeter than zero value and specific letters (can’t be done via form

    Starter in P4:

    =SUM(INDEX((Shortages!B$2:B$5=N4)*(Shortages!C$2:C$5=O4)*(Shortages!F$2:H$5),0))

    What else do you need? Tell me where to look.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,826

    Re: look up based on greeter than zero value and specific letters (can’t be done via form

    I have to go now - got other things to do, sorry.

    If you can clearly clarify what you are attempting to do - one step at a time - then I am sure someone can help you to do this with formulae. You are going to need to be much clearer, though, about what is meant to be happening.

    As I have to go, I have called for help, but whoever steps in will need the clarification I've asked for, so you need to participate.
    Last edited by AliGW; 02-22-2019 at 08:31 AM.

  9. #9
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: look up based on greeter than zero value and specific letters (can’t be done via form

    I cannot figure out from your file and your description what you are trying to do.

    On the breakdown tab - I need a look up in the highlighted in red area

    The highlighted red area on the Breakdown tab looks like this. Which cell(s) do you want to contain the result of your lookup:

    N
    O
    P
    4
    GRP(538)
    K P ROSSELLO RED
    26
    5
    LHL (538)
    EIGER GREY
    30

    if there’s a number in column F,G, H on the shortages tab it retunes what it is

    Returns what? Returns it where? Returns it based on what--what are the criteria for the lookup?

    and sums the 3 coloured columns (currently manually done)


    In Breakdown you show 30 for LHL (538), EIGER GRAY. Where are you getting 30?

    Example
    It needs to look for everything with letters K P… then report anything that greater than zero please see highlighted example in red.. But it reports exactly what it is the K P variant is

    Shortages tab this pasted data. columns A – N data changes daily… no fixed data

    Breakdown tab looks at data from S-AA on the shortages tab
    None of this makes sense until we get the other questions answered.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,559

    Re: look up based on greeter than zero value and specific letters (can’t be done via form

    To get both the values in P4 and P5 modify AliGW's formula to read*:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    *Denotes an array entered formula
    1. Select cell P4
    2. Paste the above formula into the formula bar
    3. Simultaneously press the Ctrl, Shift and Enter keys
    4. Drag the fill handle down to cell P5.
    Note that the only non-zero value for LHL (538) EIGER GREY is 2 (in cell H41)
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  11. #11
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    471

    Re: look up based on greeter than zero value and specific letters (can’t be done via form

    on the breakdown tab

    Criteria for the look up is K P (the 1st 2 letters from column c on shortages tab) if there is a value greater 0 in either F, G, H it then it triggers returns
    N4 TO RETURN column b (the type) from shortages tab
    O4 to return column c (the colour) from shortages tab not just K P but whatever is in the cell
    P4 to return the sum value of F,G,H

    LHL EIGER GRAY comes from row 41 on the shortages tab (the qty should be 2)

  12. #12
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    471

    Re: look up based on greeter than zero value and specific letters (can’t be done via form

    =SUM(IFERROR(INDEX((Shortages!B$2:B$150=N4)*(Shortages!C$2:C$150=O4)*(Shortages!F$2:H$150),0),0))

    this wont work as P4 and P5 values are dermined from values in colun c on shortages tab..... the look up values is 2 charaters K P...... so it looks for at row C on shortages then looks at the values in F, G, H if they are greater than zero it then reurnrs what it is (K P ROSSELLO RED as there 13 & 13

  13. #13
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,559

    Re: look up based on greeter than zero value and specific letters (can’t be done via form

    Going to make another attempt at filling in the values on the Breakdown sheet that are highlighted in red.
    1. A helper column (O) which may be moved and/or hidden for aesthetic purposes, is added to the Shortages sheet and populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    2. On the Breakdown sheet N4:N12 are populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    3. O4:O12 are populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    4. P4:P12 are populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files

+ 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. [SOLVED] Conditionally format based on a formula matching a string with digits, not letters
    By MattDay2u in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 10-20-2017, 11:04 AM
  2. [SOLVED] Formula to Concatenate letters based on Unique Numbers
    By Franky alta in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-30-2017, 11:46 AM
  3. [SOLVED] A Formula Which Deletes The Letters After A Certain Letters
    By zanshin777 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-04-2016, 02:25 PM
  4. [SOLVED] Remove first three specific letters
    By PeteMeehan in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-28-2016, 07:30 AM
  5. Formula to sum up scores based on letters
    By scottj15 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-21-2013, 09:12 AM
  6. Formula Finding String with Specific Letters and Numbers
    By jpedges38 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-06-2012, 08:56 PM
  7. calculations based on letters in specific column
    By psrs0810 in forum Excel General
    Replies: 9
    Last Post: 11-08-2010, 12:43 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