+ Reply to Thread
Results 1 to 3 of 3

Search Multiple and Calculate Depending on Find. plz help!

  1. #1
    Registered User
    Join Date
    11-06-2016
    Location
    Vancouver
    MS-Off Ver
    Windows. Latest.
    Posts
    42

    Search Multiple and Calculate Depending on Find. plz help!

    I can't seem to figure out, or find the solution:

    I'd like to search a cell, D6, and depending on which match is made, a specific calculation done in the target cell.

    So I know this function:

    =IF(ISNUMBER(SEARCH("oz",D6)),(C6*28),"")

    Which works great, but I would like it to continue:

    if oz then D6*28, if lb then D6*454, if lbs then D6*454, if g then "" do nothing.

    Please help !!
    Thanks for the assistance !
    Attached Files Attached Files
    Last edited by BeHereALot; 04-22-2017 at 10:35 PM.

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,367

    Re: Search Multiple and Calculate Depending on Find. plz help!

    Maybe

    =IF(D6="oz",C6*28,IF(D6="lb",D6*454,""))

  3. #3
    Registered User
    Join Date
    11-06-2016
    Location
    Vancouver
    MS-Off Ver
    Windows. Latest.
    Posts
    42

    Re: Search Multiple and Calculate Depending on Find. plz help!

    amazing. works.

    sometimes, just gotta keep it simple i guess!

    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. Replies: 1
    Last Post: 02-23-2017, 04:55 PM
  2. VLOOKUP in VBA to find search with multiple occurences
    By iswizzle in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-30-2015, 10:11 AM
  3. Replies: 1
    Last Post: 05-15-2013, 09:51 PM
  4. Truncate text strings using LEFT and FIND/SEARCH for multiple search terms
    By ngdoherty in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2013, 07:51 PM
  5. [SOLVED] How do you search through multiple sheets to find a specific value?
    By bean29 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2013, 10:07 AM
  6. Search multiple columns and find corresponding value
    By smcg23 in forum Excel General
    Replies: 3
    Last Post: 11-04-2008, 07:44 AM
  7. [SOLVED] Multiple Find/Search Criterias
    By swiftcode in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-27-2005, 01:05 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