+ Reply to Thread
Results 1 to 8 of 8

Need help creating a formula that searches pairs of cells in a row of multiple cell pairs

  1. #1
    Registered User
    Join Date
    10-14-2019
    Location
    Podunk, Alaska
    MS-Off Ver
    2010
    Posts
    7

    Need help creating a formula that searches pairs of cells in a row of multiple cell pairs

    Hoping this is possible. I want to have the spreadsheet see which cell has a value and have that value multiplied by a correlating value. There are 5 different pairs of corresponding values, and I cannot figure out how to do it. I believe it will be a Logic Formula with multiple options, saying that if there is a value above 0 in cell A, then multiply by cell B, but if the value is in cell C multiply by cell D, If it is in E multiply by F, G by H, etc.

    Please see attached.
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Need help creating a formula that searches pairs of cells in a row of multiple cell pa

    Hello and welcome to the forum.

    Try this in K2:

    =SUMIF(A$1:J$1,"A*",A2:J2)*INDEX(A2:J2,MATCH(SUMIF(A$1:J$1,"A*",A2:J2),A2:J2,0)+1)

    Drag the formula down.

  3. #3
    Registered User
    Join Date
    10-14-2019
    Location
    Podunk, Alaska
    MS-Off Ver
    2010
    Posts
    7

    Re: Need help creating a formula that searches pairs of cells in a row of multiple cell pa

    Thank you. I will give it a try.

    Have a great day.

    Emma Shoe

  4. #4
    Registered User
    Join Date
    10-14-2019
    Location
    Podunk, Alaska
    MS-Off Ver
    2010
    Posts
    7

    Re: Need help creating a formula that searches pairs of cells in a row of multiple cell pa

    Unfortunately, I did not get that to work.
    Thanks for trying.

    Emma

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Need help creating a formula that searches pairs of cells in a row of multiple cell pa

    I have put the formula from post #2 into the workbook from post #1 and have uploaded the result here.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-14-2019
    Location
    Podunk, Alaska
    MS-Off Ver
    2010
    Posts
    7

    Cool Re: Need help creating a formula that searches pairs of cells in a row of multiple cell pa

    That is fantastic! Thank you.

    Now I have to study it to see how it works so I can understand it.

    Thanks again!

    Emma

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Need help creating a formula that searches pairs of cells in a row of multiple cell pa

    FWIW another way.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 10-16-2019 at 09:08 PM.
    Dave

  8. #8
    Registered User
    Join Date
    10-14-2019
    Location
    Podunk, Alaska
    MS-Off Ver
    2010
    Posts
    7

    Re: Need help creating a formula that searches pairs of cells in a row of multiple cell pa

    Dave, that is awesome too. Thank you. Might be easier for me to duplicate this one in the future. Seems a little less complicated for me.

    Have a great day!!

    Emma

+ 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: 08-19-2019, 08:38 AM
  2. please, detect in the 100 pairs, the pairs of the 16 patterns,
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-23-2019, 06:07 AM
  3. Count cell pairs meeting multiple conditions
    By andyrwise in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-08-2019, 03:18 PM
  4. convert the sweepstakes to their palindrome pairs and identify the twin pairs.
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-19-2019, 07:59 AM
  5. [SOLVED] locate in their positions pairs and odd pairs
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2018, 06:35 AM
  6. [SOLVED] Matching two pairs of cells to return a third cell
    By excelhelpguy123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-04-2016, 11:50 AM
  7. How to identify duplicates based on multiple cell pairs
    By dhendridge in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-18-2011, 05:06 AM

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