+ Reply to Thread
Results 1 to 3 of 3

How to use Environ Before a formula

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Post How to use Environ Before a formula

    hi,
    i want to check username before work a formula,

    for example

    =if,username<>"sid","yes","no"

    if username is "sid" then "yes" otherwise "no"

    thank you
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  2. #2
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    484

    Re: How to use Environ Before a formula

    Maybe

    =IF(INFO("DIRECTORY")="C:\Users\Sid\Documents\","yes","no")

  3. #3
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: How to use Environ Before a formula

    thank you
    it will do

+ 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. Problem with Environ function on 64 bit PC
    By darry in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2020, 03:49 PM
  2. [SOLVED] Environ = Username
    By papasmurfuo9 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-10-2014, 06:24 AM
  3. [SOLVED] Environ Username issue
    By ScabbyDog in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-18-2013, 11:55 AM
  4. Environ DLL
    By randell.graybill in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-15-2010, 10:37 PM
  5. Issues with Environ vba script
    By jpruffle in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-16-2009, 03:55 PM
  6. environ to get windows sign on
    By jtwork in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2007, 07:30 AM
  7. Environ user tracking
    By geraintathomas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-11-2006, 08:26 AM
  8. Environ function.
    By DaveO in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-14-2005, 12:06 PM

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