+ Reply to Thread
Results 1 to 2 of 2

Help with searching external workbook for specified data and performing math against it

  1. #1
    Registered User
    Join Date
    10-30-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    14

    Cool Help with searching external workbook for specified data and performing math against it

    Hey there!!

    I have an external excel file with hundreds of constantly fluctuating item numbers in the A column, and their corresponding prices in the B column. That's all the excel file is used for. I have another excel file which I'd like to use to perform calculations using this data. The only problem is, I can't always rely on "Clam Chowder" faithfully staying in A14. If I could, I wouldn't need help with this. One day, an item/cost may be in A4 and B4, but the next day they may be in A76/B76. I'm looking for some sort of formula that searches the ENTIRE A column of the external file for the text "Clam Chowder", and returns the value in the column next to it. I've successfully done this already using =INDEX('[myfile.xlsx]Table1'!$B$2:$B$500,MATCH("Clam Chowder",'[myfile.xlsx]Table1'!$A$2:$A$500,0)).

    The only problem with my formula, is - I want to divide against the returned value. So, if the cost of Clam Chowder is $4.50 (yes, that's the actual value in the cell), my formula returns "$4.50" as a string. If I add /40 to the end of the formula (I want to divide it by 40), the value changes to $0 when it should change to $0.1125 if it worked. How do I extract data from that cell, but have it be a number that I can actually still play around with?

    I'm sorry if this isn't clear. Is this even possible?

    On a side note, I'd also like to automate the /40 part once I get it working. I'll reply explaining my question for that after I get the first part working...

    Thanks!!

  2. #2
    Registered User
    Join Date
    10-30-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    14

    Re: Help with searching external workbook for specified data and performing math against i

    Wow - I'm pretty dumb. All I needed to do was expand the visible numbers after the decimal point. Jeez! Sorry guys...

    While we're on the topic - if the external A column has, let's say Clam Chowder x30, x50 and x80 (in three separate columns, and three corresponding prices in the B column), How would I tell my formula to ONLY find the text with the greatest number. So, basically I'm saying I don't care about the x30 and x50 - I just care about the x80.

    Is that possible?

+ 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: 06-21-2012, 03:55 PM
  2. [SOLVED] Performing Math Functions on InputBox Values
    By lloydgodin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-12-2012, 04:00 PM
  3. Replies: 9
    Last Post: 02-01-2011, 01:41 AM
  4. Performing math on cells containg time formats
    By bigjohn636 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-05-2008, 06:08 PM
  5. Performing Math with Time over 24 hours
    By Michael in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-12-2005, 03:45 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