Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 95
Default If cell not null use that value

First off thanks to everyone for their help over the past 2 weeks, I am
almost at the end of the development of the guide I have another help request

I am using this;

=IF(ISERROR(INDEX('Value Unit Prices'!C22:N41,MATCH(C29,'Value Unit
Prices'!A22:A41,0),MATCH(Pricelevel,'Value Unit
Prices'!D21:N21,0))*P29),"",(INDEX('Value Unit
Prices'!C22:N41,MATCH(C29,'Value Unit
Prices'!A22:A41,0),MATCH(Pricelevel,'Value Unit Prices'!D21:N21,0))*P29))

Which works perfectly however PriceLevel can be changed so I have a cell
called leveloveride I want include in this formula, basically if
leveloveride is not null that the formula is to use the level in leveloveride
in its equation, if leveloveride is 'null' the formula is to use Pricelevel
in its equation.

I need it setup this way because Pricelevel is pulled directly from the DB I
am using so I can have them users manually changing that cell.

Any help would be greatly appreciated

Thanks in advance
--
Neall
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default If cell not null use that value

Neall wrote...
....
I am using this;

=IF(ISERROR(INDEX('Value Unit Prices'!C22:N41,
MATCH(C29,'Value Unit Prices'!A22:A41,0),
MATCH(Pricelevel,'Value Unit Prices'!D21:N21,0))*P29),"",
(INDEX('Value Unit Prices'!C22:N41,
MATCH(C29,'Value Unit Prices'!A22:A41,0),
MATCH(Pricelevel,'Value Unit Prices'!D21:N21,0))*P29))


This may work, but it's unlikely you either need to check for error
values in P29 or would benefit from trapping such errors of they
exist. I'd guess you only need to trap C29 not in 'Value Unit Prices'!
A22:A41 or PriceLevel not in 'Value Unit Prices'!D21:N21. If so, it'd
be more robust to use

=IF(COUNT(MATCH(C29,'Value Unit Prices'!A22:A41,0),
MATCH(Pricelevel,'Value Unit Prices'!D21:N21,0))=2,
INDEX('Value Unit Prices'!C22:N41,
MATCH(C29,'Value Unit Prices'!A22:A41,0),
MATCH(Pricelevel,'Value Unit Prices'!D21:N21,0))*P29,"")

Which works perfectly however PriceLevel can be changed so I have a cell
called leveloveride I want *include in this formula, basically if
leveloveride is not null that the formula is to use the level in leveloveride
in its equation, if leveloveride is 'null' the formula is to use Pricelevel
in its equation.


Change current references to PriceLevel to IF(ISBLANK
(LevelOveride),PriceLevel,LevelOveride).
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
Failed to save table attributes of (null) into (null). Luca Brasi Excel Discussion (Misc queries) 2 February 4th 09 04:30 PM
Sum a NULL cell ArcticWolf Excel Worksheet Functions 6 December 4th 08 02:04 PM
If values of Cell are Null........... Saz New Users to Excel 1 April 25th 08 09:03 AM
IF function and null cell value DAllen Excel Worksheet Functions 2 February 19th 07 04:48 PM
cell value based on null/not null in another cell spence Excel Worksheet Functions 1 February 18th 06 11:49 PM


All times are GMT +1. The time now is 06:52 PM.

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"