Multiplication Problem

segran

Active Member
Joined
Aug 20, 2004
Messages
335
Hi,

When a fraction is multilpied to an array of numbers, i want the results of the whole numbers only. Please see example below. Is there a way of doing this in a simple manner (macro/function)

Thank you


Excel Workbook
BCDEFGHI
2Data Set 1211299729*
3Data Set 2251721191428*
4********
5Fractions*******
6*1/2*******
7*2/3*******
8*1/7*******
9*6/7*******
1013/21*******
11********
12Example*******
13Using 1/2*1 * * *5 *1/214 *1/24 *1/23 *1/214 *1/2
14**12 *1/28 *1/210 *1/29 *1/27 * * *14 * * *
15********
16********
17**1*****
18******714
19********
20********
21**Result is 1, 7, 14*****
Sheet1
 

Some videos you may like

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

milesUK

Active Member
Joined
Jan 5, 2003
Messages
388
segran,

one way is to hide the results by Conditionally Formating the cells with a formula like:
Code:
=C4<>INT(C4)
However if you want cell D21 to read "Result is 1, 7, 14" for example then that is more work. Try this in cell D21:

Code:
="The Result is "&SUBSTITUTE(D17&", "&E17&", "&F17&", "&G17,", *","")
but replace D17&", "&E17&", "&F17&", "&G17 with the full set of cells making up your array.
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,503
Messages
5,511,696
Members
408,859
Latest member
willm57

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...
Top