+ Reply to Thread
Results 1 to 4 of 4

Custom Formula for Assign Excel Cell Contents to Variables with VB

  1. #1
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Hyderabad
    MS-Off Ver
    2007
    Posts
    160

    Custom Formula for Assign Excel Cell Contents to Variables with VB

    Dear All,

    I want to know whether we can implement a custom formula for assigning cell contents to variables.

    i.e., lets suppose I've a sheet with 4 cells in which 3 are data validation lists & another one is just a cell that I'm using to assign a cell value to variables.

    1st dropdown has sheet names, 2nd dropdown has items which are located at Column A in all Sheets & 3rd Dropdown is date which is located in first row in all sheets & last cell is quantity whose value to be assigned to all the variables as per sheet, item, date selected

    I'll have the same requirement in all most all the excel files in my company. So I want to have a custom formula for assigning cell contents to variables with VB.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Custom Formula for Assign Excel Cell Contents to Variables with VB

    Hi, maybe I'm not reading this correctly but I honestly do not understand what you want.
    I suggest a simple sheet with the 4 cells, what you have and what you want to illustrate it.
    Something that is clear for yourself is not always so with the reader, I've run into that many times.
    And yes, You forgot to to mention your Excel version
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Hyderabad
    MS-Off Ver
    2007
    Posts
    160

    Re: Custom Formula for Assign Excel Cell Contents to Variables with VB

    Hi Keebellah,

    Sorry for confusing you

    Attached the zip file with 2 excel files which has the requirement of assigning the value from one sheet/cell to multiple sheets/cells

    1. SSR Sample Format: Please go through E8,E9 & F14 to F48, If I select location, dispatch type & quantity entered in F14 to F48, quantity to be routed to SSR Sheet based on my selection

    2. CG_&_Export_Sample_Raw_Material_Details: Please go through Receipts UF sheet E2 to E8 which has date, item, Model & Quantity. So here I want to assign quantity to the respective sheet based on date, item & Model selection.

    Based on these 2 files, I understood that assigning value is the most important concept in vb. So rather than VB Coding for individual file, I want to have a custom formula for assigning the values from few cells to multiple cells based on a criteria.
    Attached Files Attached Files

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Custom Formula for Assign Excel Cell Contents to Variables with VB

    I don't understand it yet, but I've downloaded the files and will take a loot at it the coming days.

+ 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. Formula to match variables and assign given count
    By Tatonka33 in forum Excel General
    Replies: 4
    Last Post: 03-04-2015, 01:08 PM
  2. [SOLVED] inserting a custom function in a cell using variables and loops
    By ajm1991 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-15-2014, 01:41 PM
  3. [SOLVED] How to take cell with custom format and assign to variable as text (as appears in cell)
    By tv69 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-07-2014, 02:44 PM
  4. Custom Formatting of Cell Contents
    By walkitoff in forum Excel General
    Replies: 2
    Last Post: 03-19-2013, 04:58 PM
  5. Using external text file to assign VBA variables for multiple excel files
    By evancharles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2013, 05:30 AM
  6. [SOLVED] Assign excel cells to variables
    By jayinthe813 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-07-2012, 08:22 AM
  7. [SOLVED] excel - insert cell contents in a custom header / footer
    By b in forum Excel General
    Replies: 0
    Last Post: 08-25-2005, 02:05 PM

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