Sunif to return text?

treaves04

Board Regular
Joined
Jul 2, 2012
Messages
62
Office Version
  1. 365
Platform
  1. Windows
Been working this issue for a while and haven't been able to solve it myself. I can two workbooks, Rent Rolls and Rent Rec. I have several Named columns on rent Rec to keep things simple. Here is the formula I use in Rent Rolls:

=SUMIFS(RentAmtRecd,RentFrom,$C4,RentDateRecd,">="&F$1,RentDateRecd,"<"&G$1)

This formula sums all the rent (partial or whole) between the date ranges F1 and G1 (which scroll across the page).

The Problem I have is I need to be able to enter text on 'Rent Rec' and it show in the cell, but SUMIFS ignores all non-numeric Values. How can I get text such as "Evicted" or "Remodeling" into the 'Rent Rolls' cell where this formula is running?
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
If the text condition is met, will that person be in the RentFrom only 1 time?
If so, I think there is a rather simple (and ugly) solution I found that works. Something like the following, but I don't know what your range is for the "table" so I used A2:D1000.

Code:
IF(ISERROR(SUMIFS(RentAmtRecd,RentFrom,$C4,RentDateRecd,">="&F$1,RentDateRecd,"<"&G$1),VLOOKUP($C$4,A2:D100,4,false),SUMIFS(RentAmtRecd,RentFrom,$C4,RentDateRecd,">="&F$1,RentDateRecd,"<"&G$1))
 
Last edited:
Upvote 0
If the text condition is met, will that person be in the RentFrom only 1 time?
If so, I think there is a rather simple (and ugly) solution I found that works. Something like the following, but I don't know what your range is for the "table" so I used A2:D1000.

Code:
IF(ISERROR(SUMIFS(RentAmtRecd,RentFrom,$C4,RentDateRecd,">="&F$1,RentDateRecd,"<"&G$1),VLOOKUP($C$4,A2:D100,4,false),SUMIFS(RentAmtRecd,RentFrom,$C4,RentDateRecd,">="&F$1,RentDateRecd,"<"&G$1))

Unfortunately, the property (c4) will appear numerous times. Only once In the given date range. For Example:

January - $800 (Just the rent collected, formula works fine here)
February - Tenant Moves out ( would need to label "Move Out")
March - Work Done (Label as Remodel or whatever)
April - $900 (Formula works again.)

Keep in Mind I am tracking 90 Properties with a minimum of 12 transaction per year, so every property will show up at least 12 times a year, thus the reason for the date ranges when looking it up.
 
Upvote 0
It's not very easy to replicate a sample of your data. Could you provide one including a case or two that should be tested and what you want returned?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top