+ Reply to Thread
Results 1 to 4 of 4

VBA - different formulas and matching values

  1. #1
    Registered User
    Join Date
    03-08-2019
    Location
    Estonia
    MS-Off Ver
    MS Office 360
    Posts
    19

    Post VBA - different formulas and matching values

    1. Calculate value into column „Profiili kogus“ – If value in column „Aken/Uks“ is set to Uks then the formula should be following: =2*column „Kus“ value + column „lus“ value
    If the value in column „Aken/Uks“ is set to Aken then the formula should be following: =2*( column „Kus“ value + column „lus“ value).

    2. Calculate value into column „Pro“ – search matching values between columns Tüüp; Süsteem in sheet „calc“ and columns Tüüp; Süsteem in sheet „sheet“. Matching values must be on the same row. Then look from which column in sheet „sheet“ the value must be taken. It should be the column which headline responds to column „toon“ value in sheet „calc“.

    The formula in column „Pro“ should be following: =“Profiil kogus“ value/1000*value defined above.

    3. Calculate value into column „Paig“ - search matching values between columns Tüüp; Süsteem in sheet „calc“ and columns Tüüp; Süsteem in sheet „sheet“. Matching values must be on the same row. The value must be taken from the same row of column „Paigaldus“ in sheet „sheet“.

    The formula in column „Paig“ should be following: =“Tk“ value* value defined above.

    VBA code should be working for range of rows(10:35) in sheet „calc“.

    I really appreciate your help and feel very open for additional questions if needed. I’ve also added a example file with one sample row.

    Thank you in advance!
    Attached Files Attached Files
    Last edited by VBwArrior; 05-07-2019 at 07:47 AM. Reason: new file

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: VBA - different formulas and matching values

    Hi,

    I had originally thought that the combination of the Tüüp & Süsteem values might create a unique descriptor to lookup in the 'sheet' sheet. However it doesn't since the Tüüp identifiers are not unique

    You need to create a unique Tüüp identifier on the 'sheet; sheet. At the moment the B3 value (Kahepoolse ukse materjal meetri hind) occurs in several places, B5, B12, none of which are spelled quite ths same as the A10 value (Kahepoolse ukse materjal).

    Please make sure there is a one to one unique lookup between the values on the calc sheet and the 'sheet' sheet. Then reupload the workbook when you have done that.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    03-08-2019
    Location
    Estonia
    MS-Off Ver
    MS Office 360
    Posts
    19

    Re: VBA - different formulas and matching values

    Hi,

    I fixed the problem now.

    Thanks!

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: VBA - different formulas and matching values

    Hi,

    See attached.

    N10:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    U10:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    X10:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You didn't mention the Kls column V, however
    V10
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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: 7
    Last Post: 09-16-2017, 11:58 AM
  2. VBA help needed in matching Formulas
    By boogyman00123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-25-2014, 08:49 AM
  3. [SOLVED] Matching formulas
    By frolo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-13-2014, 03:51 PM
  4. [SOLVED] Return cell values for non-matching & matching criteria
    By jenz_skallemose in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-13-2012, 11:52 AM
  5. Replies: 8
    Last Post: 07-28-2012, 03:22 PM
  6. Formulas not matching
    By Gambinus in forum Excel General
    Replies: 1
    Last Post: 06-15-2009, 01:37 PM
  7. Replies: 1
    Last Post: 03-18-2006, 01:55 AM

Tags for this Thread

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