Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default looking at a cell before reffering to a table


Hi

I have cells in column "cost" that checks whats in column "item" an
checks in a table to find the cost: =VLOOKUP(Item,Q1:R12,2,FALSE), thi
works fine but I would like the cost column to look in the column "sold
first and if the letter N is in a cell then write 0 in the "cost" cell
also if the letter N is not in that cell I would like it to refer t
the table. Hope that made sense and somebody can help.

Thank

--
Skill
-----------------------------------------------------------------------
Skills's Profile: http://www.excelforum.com/member.php...fo&userid=1494
View this thread: http://www.excelforum.com/showthread.php?threadid=26588

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default looking at a cell before reffering to a table

=if(sold="N",0,VLOOKUP(Item,Q1:R12,2,FALSE))

--
Regards,
Tom Ogilvy


"Skills" wrote in message
...

Hi

I have cells in column "cost" that checks whats in column "item" and
checks in a table to find the cost: =VLOOKUP(Item,Q1:R12,2,FALSE), this
works fine but I would like the cost column to look in the column "sold"
first and if the letter N is in a cell then write 0 in the "cost" cell,
also if the letter N is not in that cell I would like it to refer to
the table. Hope that made sense and somebody can help.

Thanks


--
Skills
------------------------------------------------------------------------
Skills's Profile:

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



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
Cell, Table, Pivot Table New Styles Guilherme Loretti Excel Discussion (Misc queries) 0 September 3rd 09 01:38 AM
Vlookup Question - Reffering to a column other than the leftmost? mpenkala Excel Discussion (Misc queries) 6 May 29th 08 04:48 AM
Pivit table- cell on spread sheet referencing pivot table field David M Charts and Charting in Excel 2 August 18th 07 07:46 PM
How do I link a cell outside a pivot table to one inside the table GPGTDRVR Excel Discussion (Misc queries) 3 August 17th 06 02:45 AM
Paste from Word table so that 1 table cell = 1 Excel cell Dave G Excel Discussion (Misc queries) 4 June 17th 05 12:16 AM


All times are GMT +1. The time now is 04:26 AM.

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

About Us

"It's about Microsoft Excel"