+ Reply to Thread
Results 1 to 3 of 3

Want product of values wit respect to +ive and -ive numbers

  1. #1
    Registered User
    Join Date
    01-27-2022
    Location
    UK
    MS-Off Ver
    2021
    Posts
    44

    Want product of values wit respect to +ive and -ive numbers

    Hi

    I have +ive and -ive numbers in column G from cell G6 onward.

    I have also two more columns H and I which has some values.

    Now what i want,

    i want product of values in G with H and I. if value in column G is +ive then it should be multiplied with respective column H value. and if value of column G is negative then it should be multiplied with the respective value of column I.

    Sample file is attached for further explanation

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,351

    Re: Want product of values wit respect to +ive and -ive numbers

    Try this:

    =G6*IF(G6<0,I6,H6)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-27-2022
    Location
    UK
    MS-Off Ver
    2021
    Posts
    44

    Re: Want product of values wit respect to +ive and -ive numbers

    Hi Thanks a lot it worked

+ 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. Fill custom series of numbers with respect to a specific variable number
    By Ahmad3453453 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-10-2022, 07:42 PM
  2. Fill custom series of numbers with respect to a specific variable number
    By Ahmad3453453 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2022, 01:24 PM
  3. Replies: 10
    Last Post: 12-14-2017, 09:58 AM
  4. Generate rows in respect of values of a column
    By ROHAN999 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-06-2016, 11:07 PM
  5. [SOLVED] VBA to Sort Data and exclude the negative numbers with respect to time during averaging
    By vnzerem in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2013, 12:00 PM
  6. Excel PivotChart, values don't respect filters?
    By sam452 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-26-2013, 03:13 PM
  7. Replies: 2
    Last Post: 01-10-2013, 11:37 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