+ Reply to Thread
Results 1 to 4 of 4

Formula to compare multiple cells and do a calculation

  1. #1
    Registered User
    Join Date
    05-01-2017
    Location
    US US
    MS-Off Ver
    2013
    Posts
    6

    Formula to compare multiple cells and do a calculation

    Hello,

    Issue:
    I was looking for a formula that I can use that would look at 4 cells (in a row) on one sheet and compare them to 4 cells in another sheet, and if they match it would then look at a specific column on one sheet and take that number and multiply it by the number in a specific column on sheet two and display the results on sheet one.

    For example:
    I'm looking for the words apple, orange, berry and kiwi to be in the same row in both sheets (side by side columns) and if that is true then it would take cell 5 in column X of sheet one and multiply it by cell 5 of column X of sheet two and display it in column Y of sheet one

    Notes:
    We have over 1000 rows of data to go through so using a nested if statement would be very long to create and tedious. I don't know if there is something that can be done with arrays as I'm not sure if a look up with help.


    Thank you all for your help
    Attached Files Attached Files
    Last edited by steph1111; 05-01-2017 at 01:40 PM.

  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
    30,824

    Re: Formula to compare multiple cells and do a calculation

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    05-01-2017
    Location
    US US
    MS-Off Ver
    2013
    Posts
    6

    Re: Formula to compare multiple cells and do a calculation

    Hello John,

    I have added the file to my original message. Essentially I'm looking for Apples Oranges Berries Kiwi to be present in both lists in the exact same order in the same row and if so to take the value in sheet one and two and multiply them and then add that value to outcome. In my example the answer would be 5

    Hope this helps someone help me...I'm really stuck

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,725

    Re: Formula to compare multiple cells and do a calculation

    Try this formula in F2 and it should fill down automatically in the table.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

+ 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. VBA to fill the calculation formula in pivottable2
    By johnmacpro in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2016, 08:18 PM
  2. [SOLVED] Macro or formula to change color in numbers after compare in multiple cells
    By lagiosman in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-30-2015, 06:54 AM
  3. [SOLVED] Formula to compare last 2 numbers in row for upward, downward trend calculation
    By Zyphon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-26-2015, 10:10 AM
  4. Replies: 1
    Last Post: 02-08-2012, 11:37 AM
  5. Formula to compare if multiple cells no longer blank
    By pdauction in forum Excel General
    Replies: 2
    Last Post: 04-21-2011, 08:31 AM
  6. how to compare if multiple cells are equal
    By evanhughes in forum Excel General
    Replies: 13
    Last Post: 02-02-2010, 02:30 AM
  7. Formula to compare multiple cells
    By in forum Excel General
    Replies: 7
    Last Post: 05-21-2005, 08: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