#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tonyk
 
Posts: n/a
Default Formulas IF()


trying to use IF formula on column A1:A10 "office supplies" , "janitor
supplies" etc. On column D1:D10 needs to be corresponding codes from
A1:A10. I have tried IF(A1:A10="office supplies",D1:D10=6999) it will
work but A1:A10 are not always office supplies. How do i add more items
to correspond to their own codes? What should i type in Value_if_false?
Should I be use formula IF at all?
Here is the formula IF(A1:A10="office supplies",6999)


--
tonyk
------------------------------------------------------------------------
tonyk's Profile: http://www.excelforum.com/member.php...o&userid=35088
View this thread: http://www.excelforum.com/showthread...hreadid=548482

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
macropod
 
Posts: n/a
Default Formulas IF()

Hi Tony,

For this sort of thing, you'd be better of using a lookup table in
conjunction with one of Excel's lookup functions - LOOKUP, VLOOKUP or
HLOOKUP.

Cheers

--
macropod
[MVP - Microsoft Word]


"tonyk" wrote in
message ...

trying to use IF formula on column A1:A10 "office supplies" , "janitor
supplies" etc. On column D1:D10 needs to be corresponding codes from
A1:A10. I have tried IF(A1:A10="office supplies",D1:D10=6999) it will
work but A1:A10 are not always office supplies. How do i add more items
to correspond to their own codes? What should i type in Value_if_false?
Should I be use formula IF at all?
Here is the formula IF(A1:A10="office supplies",6999)


--
tonyk
------------------------------------------------------------------------
tonyk's Profile:

http://www.excelforum.com/member.php...o&userid=35088
View this thread: http://www.excelforum.com/showthread...hreadid=548482



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Formulas IF()

I think you wan to add this in D1

=IF(A1="office supplies",6999,"")

and copy down to A10


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"tonyk" wrote in
message ...

trying to use IF formula on column A1:A10 "office supplies" , "janitor
supplies" etc. On column D1:D10 needs to be corresponding codes from
A1:A10. I have tried IF(A1:A10="office supplies",D1:D10=6999) it will
work but A1:A10 are not always office supplies. How do i add more items
to correspond to their own codes? What should i type in Value_if_false?
Should I be use formula IF at all?
Here is the formula IF(A1:A10="office supplies",6999)


--
tonyk
------------------------------------------------------------------------
tonyk's Profile:

http://www.excelforum.com/member.php...o&userid=35088
View this thread: http://www.excelforum.com/showthread...hreadid=548482



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Arvi Laanemets
 
Posts: n/a
Default Formulas IF()

Hi

=VLOOKUP("office supplies",$A$1:$D$10,4,0)
returns the code from column D from same row where 'office supplies' is in
column A.


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )


"tonyk" wrote in
message ...

trying to use IF formula on column A1:A10 "office supplies" , "janitor
supplies" etc. On column D1:D10 needs to be corresponding codes from
A1:A10. I have tried IF(A1:A10="office supplies",D1:D10=6999) it will
work but A1:A10 are not always office supplies. How do i add more items
to correspond to their own codes? What should i type in Value_if_false?
Should I be use formula IF at all?
Here is the formula IF(A1:A10="office supplies",6999)


--
tonyk
------------------------------------------------------------------------
tonyk's Profile:
http://www.excelforum.com/member.php...o&userid=35088
View this thread: http://www.excelforum.com/showthread...hreadid=548482



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
FSt1
 
Posts: n/a
Default Formulas IF()

hi,
the if formula reads...if then else so your formula should be..
=IF(A1:A10="office supplies",6999,0) if office supplies then 6999 else 0.
you can string 7 ifs in the formula by simply placing another if in the
place of the 0.
=IF(A1:A10="office supplies",6999,if(janitoral,janitor code,if(widgets,
widget code,0))) and so on.
hope this helped.
regards
FSt1

"tonyk" wrote:


trying to use IF formula on column A1:A10 "office supplies" , "janitor
supplies" etc. On column D1:D10 needs to be corresponding codes from
A1:A10. I have tried IF(A1:A10="office supplies",D1:D10=6999) it will
work but A1:A10 are not always office supplies. How do i add more items
to correspond to their own codes? What should i type in Value_if_false?
Should I be use formula IF at all?
Here is the formula IF(A1:A10="office supplies",6999)


--
tonyk
------------------------------------------------------------------------
tonyk's Profile: http://www.excelforum.com/member.php...o&userid=35088
View this thread: http://www.excelforum.com/showthread...hreadid=548482


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change column letters to correct ones in many formulas automatically? Dmitry Kopnichev Links and Linking in Excel 7 October 13th 05 09:52 PM
how can i get formulas in excel to copy and paste? bman Excel Worksheet Functions 1 October 3rd 05 04:15 PM
How to make Excel run limited number of formulas on a given worksh John Excel Discussion (Misc queries) 0 January 12th 05 04:29 PM
Way to make Excel only run certain formulas on a worksheet? jrusso Excel Discussion (Misc queries) 0 January 12th 05 04:23 PM
calculating formulas for all workbooks in a folder Chad Excel Worksheet Functions 3 November 13th 04 05:22 PM


All times are GMT +1. The time now is 12:28 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"