If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Column counts w/Look up cells & #N/A

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-07-09, 14:38
MillB MillB is offline
Registered User
 
Join Date: Dec 2006
Posts: 39
Column counts w/Look up cells & #N/A

I'm trying to put this out there again because I still don't have a working resolution for this.

As shown in the screenshot, I need to sum these columns around the #N/As.
The cells all include the Lookup formula to pull other counts from another tab.

Whatever formula is used, it must be entered into the totals row.

I've tried a could of of other suggestions and they didn't work.

TIA!

MillB
Attached Thumbnails
Column counts w/Look up cells & #N/A-counts.jpg  
Reply With Quote
  #2 (permalink)  
Old 12-07-09, 17:14
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
I already provided a solution on your other thread here, right?
SUM column totals when there's #N/A

Or was that question different? As I said on that other thread, option 3 is definitely a viable option. If it doesn't work and has been correctly implemented then it means that the underlying data is numbers stored as text rather than numbers. If you're still having trouble then I suggest you zip and attach the workbook...
__________________
Colin

RAD Excel Blog

Other tutorials:
Array Formulas | Deleting Rows with VBA
Reply With Quote
  #3 (permalink)  
Old 12-07-09, 17:48
MillB MillB is offline
Registered User
 
Join Date: Dec 2006
Posts: 39
Hi Colin,

Thanks for your help.
Yeah, I tried all those options and none of them worked.

The cells on the Lookup worksheet and in these columns are all formatted to number. I changed the range to above the total cells and I get zero in all.
??? See attachement.

Thanks again.
Attached Thumbnails
Column counts w/Look up cells & #N/A-3b.jpg  
Reply With Quote
  #4 (permalink)  
Old 12-07-09, 17:49
MillB MillB is offline
Registered User
 
Join Date: Dec 2006
Posts: 39
Like you said, it might be easier to attach the workbook. lol
Reply With Quote
  #5 (permalink)  
Old 12-07-09, 19:06
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
Hiya,

The formatting of the cells doesn't change the underlying data types which are what I think are causing the problem: if that SUMIF() formula I posted on the other thread is returning zero then I think the numbers in your table are actually strings. In one column, as a test, try amending the lookup formulas so that there is a 0+ at the start, eg:
Code:
=0+LOOKUP(2,1/(('Call Status'!$A$1:$A$100="Last name, First Name")
    *('Call Status'!$D$1:$D$100="Left Message")),'Call Status'!$G$1:$G$100)
The reason for doing this is that adding a zero to the lookup result will coerce it from text (string data type) to a number (double data type).

Then, here's that SUMIF() formula again for reference:
Code:
=SUMIF(B2:B10,"<=9.99999999999999E307")
Fingers crossed...
__________________
Colin

RAD Excel Blog

Other tutorials:
Array Formulas | Deleting Rows with VBA

Last edited by Colin Legg; 12-07-09 at 19:26.
Reply With Quote
  #6 (permalink)  
Old 12-08-09, 10:48
MillB MillB is offline
Registered User
 
Join Date: Dec 2006
Posts: 39
It worked!!!

Colin ~

Thank you so much for your help!
Absolutely amazing. I added 0+ at the beginning of the LOOKUP formulas in each cell and add the SUMIF. SHAZAAM!

Thanks again
Attached Thumbnails
Column counts w/Look up cells & #N/A-3c.jpg  
Reply With Quote
  #7 (permalink)  
Old 12-08-09, 11:53
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
Great stuff, Mill.
__________________
Colin

RAD Excel Blog

Other tutorials:
Array Formulas | Deleting Rows with VBA
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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