Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-13-2019, 07:56 PM
Alaska1 Alaska1 is offline Using If Function Windows 7 64bit Using If Function Office 2007
Advanced Beginner
Using If Function
 
Join Date: Nov 2011
Posts: 96
Alaska1 is on a distinguished road
Default Using If Function

I want to use the IF function to return a value in excel.

Example
A1 is equal to X than return Sales in the cell.



I tried a number if functions but could not get it to work.
Attached Files
File Type: xlsx Book1.xlsx (7.6 KB, 19 views)
Reply With Quote
  #2  
Old 01-14-2019, 07:56 AM
Marcia's Avatar
Marcia Marcia is offline Using If Function Windows 7 32bit Using If Function Office 2007
Expert
 
Join Date: May 2018
Location: Philippines
Posts: 527
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default

Add quotation marks before and after the X, like
=if(A2="X","Sales",0)
Reply With Quote
  #3  
Old 01-14-2019, 08:57 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Using If Function Windows 7 64bit Using If Function Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,777
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Marcia, were you able to download the OP's attachment?
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #4  
Old 01-14-2019, 04:16 PM
Alaska1 Alaska1 is offline Using If Function Windows 7 64bit Using If Function Office 2007
Advanced Beginner
Using If Function
 
Join Date: Nov 2011
Posts: 96
Alaska1 is on a distinguished road
Default

Thank you. it worked.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using If Function Restrict Editing function disable insert textbox function IanM_01 Word 5 11-21-2015 02:29 AM
Using If Function #REF! Error in calling VBA function disappears when function is copied lcaretto Excel Programming 2 05-26-2014 07:19 PM
Creating a graph for Future Value function (FV function) bmoody Excel 2 11-06-2013 10:52 AM
Using If Function Sum Function teza2k06 Excel 3 02-06-2013 08:29 AM
Using If Function how to use now() function gsrikanth Excel 1 01-07-2012 01:18 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:49 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft