#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 96
Default IF formula ques

I'm trying to make a formula which will recognize if the cell above is empty
to use the cell above that one, then the cell above the second one, etc., and
finally if all cells have values in them to take the first one above the one
your working in. I've come up with the following formula and it works fine if
the G35 is emtpy, it finds G34. But if both G35 & G34 are empty it doesn't
find G33. Can anyone help me?
=IF(G35="",G34,IF(G34="",G33,IF(G33="",G32,G35)))

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default IF formula ques

This assumes that you are looking for numbers:

=LOOKUP(99^99,G1:G35) will return the contents of G35 if it is not blank.
Otherwise it will return the first non-blank number above G35
--
Gary''s Student - gsnu200822


"Diane" wrote:

I'm trying to make a formula which will recognize if the cell above is empty
to use the cell above that one, then the cell above the second one, etc., and
finally if all cells have values in them to take the first one above the one
your working in. I've come up with the following formula and it works fine if
the G35 is emtpy, it finds G34. But if both G35 & G34 are empty it doesn't
find G33. Can anyone help me?
=IF(G35="",G34,IF(G34="",G33,IF(G33="",G32,G35)))

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 96
Default IF formula ques

I've never worked with LOOKUP, thanks!!
--
Diane


"Gary''s Student" wrote:

This assumes that you are looking for numbers:

=LOOKUP(99^99,G1:G35) will return the contents of G35 if it is not blank.
Otherwise it will return the first non-blank number above G35
--
Gary''s Student - gsnu200822


"Diane" wrote:

I'm trying to make a formula which will recognize if the cell above is empty
to use the cell above that one, then the cell above the second one, etc., and
finally if all cells have values in them to take the first one above the one
your working in. I've come up with the following formula and it works fine if
the G35 is emtpy, it finds G34. But if both G35 & G34 are empty it doesn't
find G33. Can anyone help me?
=IF(G35="",G34,IF(G34="",G33,IF(G33="",G32,G35)))

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
Follow up ques on using Listings ZIPPOMA NEEDS HELP Excel Discussion (Misc queries) 3 October 15th 08 02:32 AM
CountIf, SumIf formula ques. jmfrank Excel Worksheet Functions 1 January 9th 08 10:18 PM
Ques. about LINK in my workbook CMIConnie Excel Discussion (Misc queries) 4 February 10th 06 03:54 PM
MACRO QUES FOR MVP Frantic Excel-er Excel Discussion (Misc queries) 2 May 27th 05 12:37 AM
ques maya Excel Worksheet Functions 1 March 5th 05 02:49 PM


All times are GMT +1. The time now is 08:04 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"